New WordPress Theme – Slow Performance
Well I did it again. Not being happy with my last theme, I decided to start a new theme from scratch. The good news was that I was able to reuse some of the PHP code from the last theme, so I saved some typing. I’m happy with how this theme turned out, so I’ll keep it for a while.
One issue I did notice was that this theme became slow after I applied it to Technically Easy. I couldn’t understand why, as the amount of code is actually less than my previous theme. Upon further investigation, I was able to determine a problem, which was unrelated to my theme, and was able to find a solution.
Whenever I want to test the performance of my blog, I quickly turn to Pingdom Tool’s Full Page Test. I once again used the tool to find the performance problem. I simply entered my blog’s URL into the edit box on the web page, and clicked the “Test now” button.
After doing a quick search within the WordPress forums, I found out that that the prototype.js files was only needed within the admin pages of WordPress. So why was it loading when I displayed a page on Technically Easy?
As I read further, references were made to that fact that plugins can also load those files when needed. I quickly went back to my list of plugins.
Disabling a Plugin to Increase Performance
After modifying my posts to use Thickbox, I added the function from the Yoast post into my theme’s functions.php file. I then disabled the Lightbox 2 plugin and tested the posts.
If the performance of your WordPress blog is not where you want it to be, I suggest you perform a test to find out which object is causing the slowdown. From there you can research a solution to the problem.