More than 30 ways to increase your website's performance24 JAN
2008
Published in IT Exchange English Blog Web Development

Website performance optimization is a topic frequently discussed in many forums and blogs, but I've seen just a few websites actually applying these techniques. Even large to huge websites are having 100-200 KBytes pages which generate a lot of bandwidth and also are pretty hard to get loaded by the search engines or by visitor's browsers. Not to mention the amount of time used by the website to generate the output, the so called server job. This article will focus on how to optimize the output, since this task it's much easier to do and can be implemented by almost any website owner with a minimum of web development knowledge. We will cover other website performance areas in future articles.
Now, let's see why would any website (owner) roll over and do any of the changes we will describe:
- Reduce bandwidth usage or deliver more page views with the same bandwidth usage
- Speed up the loading time or server more clients in the same time
- Allow search engine crawlers / bots to index more pages on your website in the same ammount of time ( and using the same bandwidth )
- By removing the exceeding html code, the content ratio is increased. This SEO factor is not as important as it used to be couple of years ago, but you shouldn't ignore it when optimizing your website
So, first things first. Let's see the simplest ways to get all those enhancements:
- Move your CSS & JavaScript code into external files
- Remove inline CSS styles
- Get rid of the extra/unused meta-tags
- Trim out the white chars
- Remove the comments
- Use short names for media included in your website(images, flash files, movies and others)
- Use relative links instead of full url links
- Move irelevant or non-unique content into subpages or popups
- Remove or refactor un-needed widgets
- Remove site-wide links from your footer
- Convert your design to a tableless design
- Use short names for CSS classes and IDs
- Group css selectors having similar properties
- Use short-hand css styles and compress the CSS files
- Use short JavaScript function names and obfuscate/compress your JavaScript files
- Replace CSS classes and ID's with CSS hierarhical selectors
- Replace inline JavaScript events with Prototype generated events
- Replace complex html rendering code with images
- Use AJAX to load only variable content from your pages
- Use Javascript to render complex tables and forms
- Deliver compressed content when possible
- Optimize images for web
- Use GIF images when possible
- Reuse images
- Use cookies only if necessary
- Make sure you maximize the client side cache-able content
- Combine multiple css or javascript files into single resource files
- Combine multiple small resource images (sprites) into one single image
- Convert audio/video content into streamable content
- Use preloaders for flash content
- Use as few external objects on your website as you can
- Put your static images, JavaScript files and CSS stylesheets on a different domain/subdomain.



CSS - 2 posts
Java Script - 2 posts