Bernard's Technocratic Blog


improving Page Download Speeds via Javascript
August 20, 2010, 11:39 am
Filed under: JavaScript, Web Performance

I was reading another blog about page performance and I thought it would be a good read for you.

This blog touches upon more improvement considerations depending on the web application:

http://encosia.com/2010/08/18/dont-let-jquerys-document-ready-slow-you-down/

The gist is that one doesn’t need to register event handlers on document load. It’s a common practice; however, it may slow down the page if the page has numerous assets.

If one registers the event handlers in the head tag section, it will speed up the page a little faster because the registration of the events is dynamic – when the element is read by the browser and inserted into the DOM, the browser registers the event handler to that element. This will speed the registration of event handlers as the page load as opposed to waiting for the page to load and then traverse the DOM to search for the elements for event handler registration.

Another point is something intuitive. If one was to make an AJAX request using JSONP, that request should also be inserted early in the page as opposed to when the document loads. This will help the page retrieve the data faster as the JSONP is a asynchronous request.

All in all, it was a good read whether it refreshes your memory or is something new.



Website Performance
June 25, 2009, 5:19 pm
Filed under: Web Performance

http://code. google.com/ speed/articles/

http://stevesouders.com/

http://video.yahoo.com/watch/1040890/3880720