How to eliminate unnecessary recounts in jQuery library?

So, I just launched Google Page Speed ​​on my website and received the following notification:

enter image description here

Can someone please tell me what that means? And how to "eliminate" unnecessary transitions?

I also tried using http://code.jquery.com/jquery-1.6.2.min.js instead, but it tells me the same thing.

Also, I want to use https via http, so I would rather stick with the Google CDN.

Hope this is not a case of premature optimization? Just curious.

+4
source share
2 answers

Melting takes place at any time when the page changes. This means that the page is being re-displayed. This can happen if you add something to the dom or change the property to an element. One of the best ways to eliminate distortions is to disconnect the elements from the dom, make changes, and then reconnect.

+4
source

Well, you are trying to access the Google CDN incorrectly. The correct way would be

 <script type="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"></script> 

Note the lack of protocol. In the section in section 4.2 of RFC 3986 , when no protocol is specified, the page protocol will be used instead.

Read this: http://encosia.com/cripple-the-google-cdns-caching-with-a-single-character/

+1
source

All Articles