Improve load time and reduce code for bots
by Sapphire (January 13, 2007)
I’ve been operating lately on the principle that the less code there is between the start of your webpage to the actual content, the better. That way, the bots get to your content more quickly.
Since all of my sites are WordPress now, there’s not a ton of code at the top in a clean install. But when you start adding plugins, it gets hairy. One plugin I have is particularly awful - all the code for it loads at the top of every page, even on pages that can’t use the plugin. But I’ve done what I could, and here are some tips.
Look at your source code. Do you see sections of CSS styling? You can remove that from the plugin file and stick it into your main style.css file. Be careful: there are bits of code around the CSS styling within the plugin, and you may have to experiment to see if they need to be deleted or not. For example, I had style codes around the CSS in two plugins: in one, I had to remove it for the plugin to work, and in the other removing it killed the plugin. Don’t ask me why - plugins are beyond my abilities!
But now not only is the content a lot closer to the top of the source page, the page is also loading considerably faster.


April 12th, 2007 at 9:06 am
[...] Improve load time and reduce code for bots I?ve been operating lately on the principle that the less code there’s between the start of your webpage to the actual content, the better. That way, the bots get to your content more quickly. Since all of my sites are WordPress now, there?s not a ton of code at the top in a clean [?] [...]