| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Site speed and JS loading | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Site speed and JS loading
So we've been having some serious problems with site speed in Google Analytics, and their top suggestions to fix this are to remove render blocking resources.
The majority if their suggested fixes involve jQueryUI calls, which appear in /skin/common_files/jquery_ui.tpl Code:
which itself is loaded in /skin/common_files/meta.tpl Code:
Along with other resources mentioned by Google Code:
I was under the impression that the whole load_defer thing was supposed to "fix" this, but apparently it doesn't. What do we need to do to prevent these items from slowing our site down without breaking something? |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Site speed and JS loading
The javascript is deferred twice in the code, once in the header, once in the footer. The majority of javascript is placed in the header, and even when deferred loads in the head before the site content. Much of the javascript can be moved to the footer but some of it is necessary in the header because it's used in the content of the page. Trick is to either:
a) determine what is and isn't needed in the head and move it to the footer 2) determine what is needed in the content of your site and recode it so all javascript can be moved to the footer Neither one is an easy task. |
|||||||||
|
|||
X-Cart forums © 2001-2020
|