Nothing like listening to the whirl of your hard drive as the progress bar in your browser slowly creeps forward. There are so many pitfalls which designers and coders fail to see when designing a website. CMS users beware, you too could be a victim. I have seen many articles on increasing performance as well as lists which show the “Top 10″ items, they are all great but let’s be serious for a moment.
Misuse, abuse, overuse, and just plain ignorance results in slow loading sites, these are not all the same. Sure there is poor code out there, but it can run better and faster than a clean written site when many obstacles are overcome. As high speed internet takes over and bandwidth becomes second to file size we can not lose focus on what is slowing our sites down.
For those who don’t like to read, a top 10 list is at the bottom
Hardware and Connection
This is the #1, hands down, best improvement you could make.
This seems to be the hardest part for most people to chew. You can spend $75 or less for a year of hosting, or you can spend $400+. The difference in price makes a huge difference in performance. If your site falls into the first price range I have some bad news for you. Most budget hosts can offer this low rate because they can host hundreds to thousands of sites on one server with one connection. The proof is below:
The above shows 1,333 other sites hosted on that 1 server! Tell me those pages load fast. This goes with all budget hosts, if you are expecting even a trickle of traffic you should consider making the investment into better hardware with your own connection. There are plenty of dedicated servers and dedicated virtual servers which wont break the bank but will do the most for your performance.
CMS Users (WordPress, Joomla, Drupal)
Every content management system has a way of expanding the interface and options. Some are called plugins, some are called extensions, you get the point. These are great tools which can literally transform your site. This is also where “Abuse” and “Overuse” comes in.
Adding too many plugins to your CMS can seriously jeopardize its performance. If you add one plugin for say a post rating system, you just created new tables in your database. With new tables comes more queries, with more queries comes slower performance.
The demon children of all plugins are the ones that require external content i.e. links or images from other sites. These will rob your page and keep it from loading even if you are on a top of the line server. You will end up relying on the speed of the server providing the content and your page will only load when it loads.
“Misuse” is yet another one that comes into play here. Most CMS were designed around blogging or creating basic e-commerce websites. Taking a CMS and turning it into something that would normally require a custom back end is taking the easy way out. For highly customized sites it is best to buckle down and write the code yourself, even if you need to use API’s. Trying to grow and expand a complex site with a CMS base is like trying to make milk into orange juice.

Coding No No’s
Include, it makes me shudder to say that word too much. In PHP using this command too much on a single page will slow down speed and performance big time. Every time a new PHP file is included it must be compiled on the server prior to execution, one large file can be better than 20 small ones. Limiting your PHP includes can score you big points, no more than 5 per page and you are doing fine.
JavaScript plugins and libraries. Using a prebuilt library like JQuery or Prototype is fine, it is when we get into adding a ton more files that can cause problems. Remember the client side may not have the speed or browser that you do.
Loops and mySQL queries. You see it everywhere on programming forums, the “SELECT * FROM” statement. Sure, select everything if you need it, otherwise take the time and only select the fields which are applicable to your needs at that time. In addition to this I have seen many nested queries before which can all be solved using JOIN or simply changing the query to select from multiple tables. A basic knowledge of SQL can prevent headaches and poor performance, it is easy to see why so many people say “rtfm”.
Compression and Caching
This is a world which seems to hide itself from most. This is also a common oversight where the standard designer has no idea that his site is actually already compressed when run online. Most servers today run some sort of compression on files in an attempt to speed things up.
If you wanted to take things into your own hands you could find ways to pre-cache everything PHP which would save on execution time. I have an article on this as well: APC (Alternative PHP Cahce).
File compression locally before uploading to the server, well, I have not seen any true benefits to this. Several sites will tell you to remove all the unnecessary white space from your code in order to save on file size. Well if I have a 14kb file and I strip the white space, what am I left with? A 12kb file, not really worth the time unless you could find an automated process.
Closing It Up
A list for those who like to skim:
1. Get good hardware, a dedicated server is the best route.
2. Use plugins sparingly on CMS.
3. Use a CMS for its intended purpose.
4. Avoid external content e.g. images and scripts.
5. Limit the amount of files loaded on a page e.g. PHP includes and SRC links to scripts.
6. Use database queries appropriately.
7. Try not to use nested loops unless absolutely necessary.
8. File compress and pre-cache if possible.
—Two bonus points, not in article—
9. Avoid using large files such as images over 20kb.
10. Use text instead of images where you can, better for search engines anyways.
That’s is, any more tips to share?
![[del.icio.us]](http://scriptperfect.com/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://scriptperfect.com/wp-content/plugins/bookmarkify/digg.png)
![[dzone]](http://scriptperfect.com/wp-content/plugins/bookmarkify/dzone.png)
![[Facebook]](http://scriptperfect.com/wp-content/plugins/bookmarkify/facebook.png)
![[Furl]](http://scriptperfect.com/wp-content/plugins/bookmarkify/furl.png)
![[Google]](http://scriptperfect.com/wp-content/plugins/bookmarkify/google.png)
![[LinkedIn]](http://scriptperfect.com/wp-content/plugins/bookmarkify/linkedin.png)
![[MySpace]](http://scriptperfect.com/wp-content/plugins/bookmarkify/myspace.png)
![[Newsvine]](http://scriptperfect.com/wp-content/plugins/bookmarkify/newsvine.png)
![[Propeller]](http://scriptperfect.com/wp-content/plugins/bookmarkify/propeller.png)
![[Reddit]](http://scriptperfect.com/wp-content/plugins/bookmarkify/reddit.png)
![[Slashdot]](http://scriptperfect.com/wp-content/plugins/bookmarkify/slashdot.png)
![[Spurl]](http://scriptperfect.com/wp-content/plugins/bookmarkify/spurl.png)
![[StumbleUpon]](http://scriptperfect.com/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Technorati]](http://scriptperfect.com/wp-content/plugins/bookmarkify/technorati.png)
![[Twitter]](http://scriptperfect.com/wp-content/plugins/bookmarkify/twitter.png)
![[Email]](http://scriptperfect.com/wp-content/plugins/bookmarkify/email.png)
Great Link!…
This link is worth checking out, It has Lots of topics that you may find useful….
Another Title…
I think other web site owners should take this site as a model, very clean and wonderful user friendly style and design, let alone the content. You are an expert in this topic!…
Great Link!…
This post is worth visiting, It has Lots of topics that you may find useful….
quality post…
I have spent a bit of time going through your posts! http://denishaa.inube.com/blog/374739/track-pants-and-tlc-for-kids/ i had a good read….
qwsxxsq1t…
qwsxxsq1t…
Continue to publish about this topic. Generally there is usually a increased need than you may expect for this kind of info and guidance.
really…
Fat women and girls always worried because of their ugly shaped bodies. They want to wear expensive and stylish outfits . http://blog.bodybuilding.com/nbfgtrd/ but they can not wear these outwears…
[...] This post was mentioned on twitter [...]…
[...] Read this remaining post here [...]…
Gotta love a bike with dick-shaped handlebars. It might actually get me to ride a bike again.
You did a great job…
Hi there thanks for the quality post, i had a good read,http://yanjijie.blogspot.es/1308732076/how-much-is-pnina-tornai-gown-from-say-yes-to-the-dress-/ , thank you for your article,My problem has been resolved….
Useful Links…
I saw this really good Website today, I would like to share it with you all….
Its fun,Very worth to read.
Another Title…
I saw this really good post today….
Another Title…
I saw this really good post today….
Regard it as just as desirable to build a chicken house as to build a cathedral….
I’m not sure where you are getting your info, but good topic. I needs to spend some time learning more or understanding more. Thanks for fantastic information I was looking for this info for my mission….
I would like to thank you…
for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. In fact your creative writing abilities has inspired me to start my own BlogEngine blog now. Really the blogging is spreading its wings r…
I find your post interesting and just wanted to appreciate the work which you do.
The article is very good, I like it very much. I will keep your new article.
Recent Blogroll Additions……
[...]usually posts some rather intriguing stuff like this. If you’re new to this site[...]……
This is my Excerpt…
I saw this really good post today….
This…
I saw this really good post today….
Valuable thoughts and advices. I read your topic with great interest.
Great Link!…
This post is worth visiting, It has Lots of contents that you may find useful….
Another Title…
I saw this really good post today….
Trackback PR4 domain…
Today, taking into consideration the fast chosen lifestyle that everyone leads, credit cards have a huge demand in the economy….
Great Link!…
This site is worth visiting, It has Lots of contents that you may find useful….
Great Article…
[...]and there are many other blogs out there who use these types of plugins such[...]…
Great…
love your blog, http://yaplog.jp/jenny11/ ,Thanks again….
You helped me a lot indeed and reading this your article. I am glad to talk with you and you give me great information.
3…
[…]I asked God for a bike, but I know God doesn’t work that way. So I stole a bike and asked for forgiveness.[…]…
Read was interesting, stay in touch……
[...]please visit the sites we follow, including this one, as it represents our picks from the web[...]……
Websites you should visit…
[...]below you’ll find the link to some sites that we think you should visit[...]……
homemadesolarpower…
I prefer your site. Your texts are interesting. I got here by mistake and I started reading. I became interested in the subject and I am thinking it I could use your texts on my paper, of course with the quotation. Please contact with me, thank you….
{I am|I’m} {extremely|really} impressed with your writing skills {and also|as well as} with the layout on your {blog|weblog}. Is this a paid theme or did you {customize|modify} it yourself? {Either way|Anyway} keep up the {nice|excellent} quality wr…
Only a monopolist could study a business and ruin it by giving away products….
My Trackback…
[…]Hallmark Card: “I’m so miserable without you, it’s almost like you’re still here.”[…]…
Super website…
[... ]always a big supporter of linking to bloggers we love but don’t get numerous link love from[... ]……
This was an amazing site that I had never seen it before. Thanks a lot for the information because I had liked it very much!
Want to do a linkexchange…
One thing is the fact that one of the most typical incentives for utilizing your credit card is a cash-back or maybe rebate offer. Generally, you’ll receive 1-5% back for various purchases….
finding your artical is surprised to me. i want to search for this imformation. thanks your sharing.
Best Links 2011…
Thanx for the effort, keep up the good work Great work, I am going to start a small Blog Engine course work using your site I hope you enjoy blogging with the popular BlogEngine.net.Thethoughts you express are really awesome. Hope you will right some m…
wizard…
Ohh My god this is a perfect day for me. If you feel the same way come and check this out….
Best Links 2011…
Its like you read my mind! You seem to know a lot about this, like you wrote the book in it or something. I think that you could do with a few pics to drive the message home a little bit, but instead of that, this is magnificent blog. An excellent read…
What is a good free blogging website that I can respond to blogs and others will respond to me?…
I want to start a blog where I can talk to people and have them respond to my blogs. Not myspace or facebook. I tried blogger but the only blogs I could find were about global warming and guns. I want some where that I can open an account and say what …
The consumer isn’t a moron; she is your wife….
I was checking continuously this blog and I am impressed! Very helpful information specifically the last part
I care for such information much. I was looking for this particular info for a long time. Thank you and best of luck….
Read here the real reason that motivate people to consume the green grass….
We will show you how to harvest and cure your plants to produce a smoke like you have never had before….
Great Site…
I observed this really good post today. Look at it….
So so so good article.I recommend to everyone.
Best Links 2011…
I like what you guys are up also. Such clever work and reporting! Keep up the excellent works guys I have incorporated you guys to my blogroll. I think it’ll improve the value of my website
…
These are all great comments here. Very cool article.
http://www.chanel4sale.biz
I will recommend to everyone.