How to Boost the Performance of Your Website to Promote it in Search Engines – Sixth Part

Thursday, October 15, 2009 0:26
Posted in category website promotion

A complex page with more bytes slows down the DOM access to JavaScript files.  A large number of DOM elements indicate the need to improve something with the markup of the page. It does not make removing content necessary. There is a better way other than using nested tables to do the markup and fix layout issues. The YUI CS utilities can serve these purposes. For instance, grids.css is useful for the overall layout; you can strip away the formatting of the browser’s defaults with fonts.css and reset.css.

Iframes facilitate the insertion of HTML document in the parent document. The effective use of iframes increases the loading efficiency of websites. The application of iframes allows downloading scripts in parallel, makes sure security sandbox and helps with third-party components like ads and badgets. However, using iframes is not free of downsides. Minimizing the number of iframes is a boost to the loading of pages one by one.

A 404 Not Found is a useless response that at times results from making excess HTTP requests. It is not only unnecessary but also the bane of website performance. Though 404s are sometimes user-friendly, they waste server resources. A 404 results also from a wrong link to an external JavaScript. It blocks parallel downloads and the browser may take time to parse the 404 response. No 404s means no delay in downloading of pages.

There are several reasons like personalization and authentication for the use of HTTP cookies. HTTP headers between web browsers and servers exchange and store information about cookies.  Keeping the size of cookies to a minimum is important to improve the response time of users. Make sure eliminating unnecessary cookies or setting them at the proper domain level. Set an appropriate expire date to remove cookies from time to time.

Web servers do not respond to the requests that browsers send with cookies for static components. It is must to make sure that your browser makes cookie-free requests for static components. Create a sub-domain to host all static components there. If www.example.org is your domain, use static.example.org to host static components. For instance, YouTube uses ytimg.com, Yahoo uses yimg.com and Amazon uses images-amazon.com. Using a cookie-free domain to host static components stimulates the functional capacity of websites.

Pages are sometimes less responsive to the requests of browsers for servers due to more than a requisite number of event handlers that remain attached to various elements of the DOM tree. That is why it is a good option to use event delegation. Use only one event handler for ten buttons inside a div and avoid using one handler for each of the buttons. The onload event does not keep you waiting to use the DOM tree in order to do something. What you need most is an accessible element in the tree. Consider using DOMContentLoaded instead of onload. Make sure reducing the number of event handlers and developing smart event handlers for a pickup in website performance.

You can leave a response, or trackback from your own site.

Leave a Reply