For jQuery or not for jQuery?

I prefer to add hands-on eye candy to the network community that I developed, but as things start to add up, I'm worried about load times.

  • Is it really faster when users load (hopefully cached) a copy of jquery from Google repositories?

  • Does jQuery use AJAX calls to improve / decrease efficiency compared to basic javascript xmlHTTP requests?

  • Is there a practical way to reduce the number of included scripts? For example, I include jQuery and the jQuery user interface from Google, a table sorter, and a growl plugin.

+3
source share
5 answers

1. (, ) jquery Google?

. Google , .

2. jQuery AJAX / javascript-xmlHTTP-?

jQuery XmlHttpRequest , . , XmlHttpRequest.

3. ? , jQuery jQuery Google, growl.

, /CDN. Google AJAX.

jQuery , . .

JavaScript . , , , . , , JavaScript.

jQuery, , . . jQuery .

+7

1.It , (, ) jquery Google?

, . , , Google.

2. jQuery AJAX, / javascript xmlHTTP-?

jQuery , . , , Ajax Javascript.

3. ? , jQuery jQuery Google, .

, .

JQuery , , .

+7
  • , Google ( , ), Google.
    , Google, , . (- )

  • jQuery $.ajax XMLHTTPRequest. ( AJAX, )
    API jQuery .

  • jQuery- () .
    minifier Google Closure Compiler, Microsoft AjaxMin.

+1

jQuery Google . Google , , , , Google, . , , . , , , , .

jQuery ajax , . , .

, . , , , . , .

+1

Q1: ( ) jquery Google?

javascript ? , , Google .

jQuery, , jQuery , , 2 . ( google last jQuery.js)

Q2: jQuery AJAX / javascript-xmlHTTP-?

. .

Q3: ? , jQuery jQuery Google, growl.

Who is interested in the number of included scripts? This should not be a factor in your design decisions. If you need it, use it. If you do not, do not turn it on. Run all your libraries on the server where the application is running, and stop worrying about it.

0
source

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


All Articles