JQuery file name

It should be easy, and I think I know the right answer, but here it goes.

For compatibility purposes, should you leave the jQuery name as "jquery-1.3.2.min.js" or just rename it to jquery.js?

My assumption is to leave it as it is to avoid conflicts if another application uses a different version of jQuery. If they renamed it to "jquery.js" and I do the same, I see potential version conflicts.

Am I mistaken or leave the base?

Jeff

+3
source share
4 answers

JS ( CSS) , - . , , , .

JS CSS. , , , . , CSS JS HTML, . , , . , . .

+3

jquery-1.3.2.min.js, , , , .

, - include/template javascript.

+3

-, . , , , . ( ). ext, , , . jQuery - Google.




  google.load("jquery", "1.3.2");
  google.setOnLoadCallback(function() {
    // Place init code here instead of $(document).ready()
  });


jQuery, Google.

+1

I prefer to leave the version in the file name, because there are times when you change versions, and this is very useful. At a glance, I can see which version I use on any given web page.

0
source

Source: https://habr.com/ru/post/1717942/


All Articles