Now that I've had some more time to look at the problem, I'm pretty sure it isn't the code itself, just all those colours that is causing the slow loading.
So c0ldshadow, we really don't need like 200 colours. We only need 20, at best, I barely see anyone post in colour. I think that'll speed things up