Kurinchi Blogger Scribbles …


Posts Tagged ‘scriptaculous’

Oct 01
2009

Javascript code organization for optimized performance

Last updated: October 1st, 2009

Knowing how javascript code gets executed in a browser will help us organize the libraries or functions for better performance.

Javascript unlike the server side scripting languages like PHP, ASP, Perl is not compiled at the server side. It is sent as-is from the server to the browser client and it is the browser that interprets the code at the client side.

The total size of the Javascript code and its organization will have a significant effect on the pages served at the client side which in turn will affect the performance of the page.

Organize the libraries in such a fashion that you only have the needed functions associated with the page. You can consider this point right at the time of creating your template pages. This will reduce the number of javascript pages that are called from one page. (more…)


Valid HTML 4.01 Strict  Valid HTML 4.01 Strict