If your websites are experiencing response and performance complications, follow these steps to try and resolve the issues.
You can pinpoint the problems that normally cause slow response and reduced performance for websites by using a tool such as Pingdom Website Speed Test.
Once the diagnostic tool has identified the issues, you need to know how to resolve them. In this article, I list the typical resources, objects, elements, files, and other problems that cause slow response times and/or the under performing of websites. I then describe how to eliminate or at least decrease them.
You want to make your website accessible to all types of users, and while it may seem outdated, there are still numerous users who rely on 56Kbps modem connections to access the Internet. Goals and thresholds for optimization ought to rely on standards that allow for the fastest load times on the slowest user connections.
Improve website network utilization
The items listed below are usually known to cause network utilization issues for websites, and the recommendations will help to minimalize these known bottlenecks.
Cookies: Although cookies are very valuable tools for websites, they are also known to slow down response times. Best practices for handling your cookies are:
- Reduce cookie file size by keeping them as small as possible — 3000 bytes (or fewer) each if possible.
- Eliminate needless cookies, set them at the appropriate domain level, and serve static content from a domain that does not serve cookies.
Images: You should optimize your website images by using the following guidelines:
- CSS sprites can be incorporated by grouping multiple images into a single file, and then placing them within your CSS to help reduce the number of requests.
- Data URI brings a way to include data in-line and permits normally separate elements such as images and style sheets to be called in a single HTTP request rather than from several HTTP requests.
- Specify the width and height in the code of the actual image size, as resizing (compressing) images that are larger than the coded sizes will take longer to render.
HTML files (total size): Keep your overall HTML files size to less than 50K to help keep load times down to a minimum and to ensure response times of less than 10 seconds for 56K connections.
Number of objects: Try and keep the total number of objects on each HTML web page document to 20 or under. The greater number of objects you have, the more latency can be expected, which will slow down response times. Object overhead contributes to more than 80% of page latency issues.
Objects (total size): Try and keep total webpage file sizes to 100K or under to ensure that load and response times will remain under 20 seconds for 56K connections.
Web page performance improvements
These items will help to increase webpage load and response times which will give your visitors a much more appealing online experience.
Optimize the order of CSS and script files: Be sure to link calls to external CSS files in parallel and include them in the. Inline styling within thewill also slow down rendering, so make sure all CSS is contained within the external CSS files. All script files should be placed at the bottom of theand just before the closingtag. This allows for progressive display of web page content.
Get rid of unused CSS rules: CSS rules that are not used by the web page adds needless overhead, which would need to be loaded first, before any of thecontent.
CSS files (total and size): Combining your CSS into one file and minifying the CSS will go a long way to optimizing style sheet load times. Combine, refactor, minify, and GZIP compression are all good ways of optimizing your CSS.
Script files (total and size): It is easier said than done for certain implementations, but try and combine your script