This post is part of Saturday, Sunday Series for Newbie Bloggers. You can contact me, if you have any questions.
Sridhar
Q. I have been tweaking my blog to make it load faster, but nothing seems to be helping. And eventhough I don’t have heavy traffic to my blog, often times it goes down đ Can you please suggest me something to over come my problem? Am I missing something or is it normal with all blogs. And I am hosting my blog with basic hosting package, so is that the problem?
To make blog load faster
1. Remove any extra widgets you are using on your blog.- Twitter updates, Facebook fan widget etc
2. If you are running banner ads, make sure you host all the images on your domain.
3. Make less http requests from any webpage.
Ex: Instead of using “http://yourdomainname.com/images/123.jpg” you can use “/images/123.jpg” in the img tag.
4. Use less images. Having one or two images for a article helps, anything more will really slow down the site. Use multiple images only if highly necessary.
5. Move all the CSS and JavaScript codes to an external file. And make sure to optimize them – remove extra spaces, delete the useless codes and make the scripts small and smart(good coding).
6. If you have any badges and banners which does not provide any value to your visitors, then remove it mercilessly.
7. Optimize the images that you are using on your blog.
8. Use Gzip compression. Add the following code to your .htaccess file if your web host have content compression (gzip compression) turned off. You can test it using http compression tool.
# Turn GZip compression on (as per http://tr.im/fnn6)
<Location />
# Insert filter
SetOutputFilter DEFLATE
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \
\.(?:gif|jpe?g|png)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</Location>
9. Do not make use of lot of javascript codes to track your visitors. Try to stick only to the necessary things. And do not forget to test your sites performance using Webmasters tool.
Goto Webmasters Tool -> Labs -> Site performance.
Here you can see the performance over view graph and lot more information like: Load time of certain pages from your blog, You can install a 1.5MB add-on to evaluate the performance of your pages and get suggestions on how to improve them, it also reports – what is consuming more time to load and what you can do to improve the performance etc.
10. Above all the speed of the servers where you are hosting your blog is very important – without which any tweaking will go in vain.
Bonus tips:
1. Use only the necessory plugins and remove the rest.
2. Do not use Widgets. Use handcoding and put the things into the WordPress theme directly – reducing the number of calls.
Have a backup of your blog, and if you are comfortable: Use DataBase cleanup plugin, Database optimizer plugin, delete the extra post revisions, use static links – this helps very little, if you already have Gzip compression enabled or Super cache plugin enabled.
Final Thoughts from Matt Cutts:
Hosting
Invest in a good hosting company. See to that you are paying atleast 5 to 6 $ per month for your basic hosting package. If you go far a cheaper web hosting, then the problems are mostly obvious. I suggest going with Doreo host, Blue host, Host Gator, MediaTemple etc. And a basic package is all needed in the initial days.
If you are hosting at a decent hosting company, and still facing this problem, then you must consider evaluating your blogs log files. It contains information about what is consuming the bandwidth. You can mail your hosting company support team and can ask them to check it for you and to report the possible problem. In most cases it would be a plugin problem or a faulty code introduced into the CMS. Or sometimes if you are using some automated scripts to handle some tasks, all these could create some problem, if there are some bugs.
A good hosting company should be able to help you with this – if not, you know, its time to move on. And there are plenty of good web hosts to opt.
Happy Blogging!
Related Read: 20 Tips To Optimize Your HomePage