How do you upgrade Javascript libraries to the latest versions in a large web project?

When you are working on a larger web project (say 20 plus pages), how do you upgrade your Javascript libraries to the latest versions? I specifically use jQquery. It seems that every time I look, a new version comes out. I include the jQuery library on all my pages, and it pains me to update it on every page. What are other people doing? I am sure that the big answer will be to use a framework with one front controller. And I considered it, but I'm not ready to go this route yet.

+5
source share
7 answers

We do not do this.

, . , , , / . goldencoat, , - .

, , , , , .

+6

, ,

.

, , boorloader.js, html . .

var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js";
var head = document.getElementsByTagName('head');
head[0].appendChild(jq);

, , , jQuery . HTML-.

+3

jQuery URL:

http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js

, , ( ).

+3

template , .

, , , . , .

+1

"" , - . "jquery.js". , , :

  • CDN ( ). Javascript , URL- CDN.
  • . (, "jquery.js" - "jquery-1.4.1.js" ). , , .
  • .

, , "jquery-1.4.js" ( / , 1.4.0 1.4. 1, 1.5.x).

.

+1
  • , .

  • URL-, .

, libs , , . , , , .

+1

, . , . , , , , .

JS CSS include MasterPage, .NET.

0

All Articles