Jump to content

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

Is Anyone Using Google Pagespeed On Their Server? Rate Topic   - - - - -

 

Posted 02 April 2018 - 07:44 PM #1

Been thinking about implementing Google Pagespeed on my server and was curious if anyone had any input on it. Haven't seen a whole lot on it in the forums since 2014, and am interested to know if anyone has had any issues with it etc on the latest versions of cs cart.

 

Thanks,

 

Adam



 
  • mazter
  • Senior Member
  • Members
  • Join Date: 04-Apr 12
  • 256 posts

Posted 02 April 2018 - 08:35 PM #2

I have used it. JS / CSS files are a bit scary with CS-Cart because CS-Cart dumps them into single files. Google Pagespeed kicks these files to the bottom of the HTML code. It causes problems with Jquery being loaded after everything else loaded etc. Other than that, Google Pagespeed compresses everything to the bits and helps with the page speed very quickly. Unfortunately, CS-Cart is not made technologically advance to work with these technologies.



 

Posted 02 April 2018 - 09:07 PM #3

Thanks for the heads up, I am assuming you do not recommend using it then.



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

Posted 03 April 2018 - 12:01 AM #4

I have used it. JS / CSS files are a bit scary with CS-Cart because CS-Cart dumps them into single files. Google Pagespeed kicks these files to the bottom of the HTML code. It causes problems with Jquery being loaded after everything else loaded etc. Other than that, Google Pagespeed compresses everything to the bits and helps with the page speed very quickly. Unfortunately, CS-Cart is not made technologically advance to work with these technologies.

Just a reminder that the load order is determined by an addon's priority.  For templates (and scripts) highest is loaded last so that it will overwrite things of lower priorities that are loaded before it (or placed in the aggregated file last).  There are several factors that can affect statically loaded JS.  Most important is the class="cm-ajax-force" attribute which will cause script tags to load again on ajax requests.  Otherwise script tags are not included in ajax requests and what was loaded before will be used.


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.