Good practice about Javascript referencing

Posted by AngeloBad on Programmers See other posts from Programmers or by AngeloBad
Published on 2012-12-17T10:40:15Z Indexed on 2012/12/17 11:13 UTC
Read the original article Hit count: 351

Filed under:
|

I am fighting about a web application script optimization. I have an ASP.NET web app that reference jQuery in the master page, and in every child page can reference other library or JavaScript extension.

I would like to optimize the application with YUI for .NET.

The question is, I should put all the libraries reference in the master page or to compress all the JavaScript code in a single file, or I should create a file for every page that contains only the code useful to the page?

Is there any guidance to follow?

Thanks!

© Programmers or respective owner

Related posts about JavaScript

Related posts about best-pactice