View Single Post
  #139  
Old 07-18-2013, 02:15 PM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: CloudSearch service for X-Cart has been released

Hi Nikita,

I am optimizing my site for speed -- and Google is telling me I have more than one version of jquery.min.js -- one of the duplicates was CloudSearch.

i already have the Google CDN jquery 1.8.3 loading in
/skin/common_files/customer/service_js.tpl

https://developers.google.com/speed/libraries/devguide#jquery

So - in file
/skin/common_files/modules/Cloud_Search/customer_js.tpl

I commented out
Code:
{* {load_defer file="modules/Cloud_Search/js/jquery-1.7.2.min.js" type="js"} *}
but that broke my site...
ah -- need to also comment out
Code:
{* {load_defer file="modules/Cloud_Search/js/jquery-no-conflict.js" type="js"} *}

And things appear to be working.
DO YOU SEE ANY ISSUES using jquery version 1.8.3 from the google CDN? is there a reason for 1.7.2 and not 1.8.3 in your distribution?

http://encosia.com/3-reasons-why-you-should-let-google-host-jquery-for-you/

May I ask why you have a version of jquery in the cloudsearch distribution?

Every 95k (and a round trip to the server) that isn't loading makes for a faster site...

Yes?
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote