Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

"jquery Cdn" Page Speed Issue Rate Topic   - - - - -

 
  • teosu
  • Senior Member
  • Members
  • Join Date: 09-Oct 14
  • 762 posts

Posted 16 January 2020 - 09:50 AM #1

Google page speed tools all time give me same alert; you can save 1.2 ms, 1 second is huge time .

doesn't it make more sense to load jquery libraries from local?



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11642 posts

Posted 27 January 2020 - 07:54 PM #2

1.2ms is not 1 second, it's 1/1000 of a second. 

What do you mean by "load jquery libraries from local"? 

Jquery is loaded for the site at startup.  However, Jquery UI is not generally a part of cs-cart (they use their own microcoding).  So if you needed jQuery UI (or differeent version) loaded, you should use the my changes/hooks/head_scripts.post.tpl hook to load any specific versions you want.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • Gert
  • Newbie
  • Trial users
  • Join Date: 05-Jul 19
  • 12 posts

Posted 08 July 2020 - 08:47 AM #3

My speed test report:

Third-party code blocked the main thread for 2,160 ms

Main-Thread Blocking Time
jQuery CDN 34 KB 2,029 ms
 
Does this jQuery delay the actual showing of the web page to the customer, what I mean is, is it noticeable to the user or a background process ?


 
  • fiberit
  • Advanced Member
  • Trial users
  • Join Date: 05-Oct 13
  • 78 posts

Posted 24 July 2020 - 05:06 PM #4

cs-cart has an old jquery library. They don't update. In my opinion they are 1 year late with everything.



 
  • Airpl4ne
  • Newbie
  • Trial users
  • Join Date: 30-Jan 20
  • 8 posts

Posted 30 July 2020 - 04:57 PM #5

Hello,

We are also having the same problem on a newly deployed multivendor store getting less than 25 for mobiles and less than 50 for desktop versions from Google PageSpeed Insights. The main blocker is the jQuery CDN that adds between 1 and 6 (!) seconds to the load time. Fortunately, the page seems to be rather fast when accessed directly form any device. However, we would greatly appreciate any advice on how to fix this.

Thanks!



 
  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 11642 posts

Posted 30 July 2020 - 10:30 PM #6

That should be cached in your browser after the first load.  If not, check your browser settings related to how long to cache JS files.


EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.


 
  • patroklos
  • Newbie
  • Members
  • Join Date: 13-Jun 19
  • 11 posts

Posted 31 July 2020 - 08:10 AM #7

Its true that the CDN version might be fetched 

very slowly in some cases

and generally slower than a paid CDN.

 

I think there is an assumption (which would be nice to have stats for)

that the user's browser already has that jQuery library

by downloading it when browsing another website

that already uses the same library.

 

Google PageSpeed Insights has gotten way too strict for mobile sites in a

way that I think few people take it seriously try to improve the score.

Major websites with millions of users fail to score more than 20 especially those

that are not custom made and are based on wordpress for example.