View Single Post
  #2  
Old 01-21-2015, 12:44 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default 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.
Reply With Quote