Agreed. I’ve improved it by moving the two jquery plugins to the bottom, but I haven’t moved jquery itself. My experience is that doing that is harder.


On 24 Mar 2014, at 17:01, Jason Porter <notifications@github.com> wrote:

> In _layouts/base.html.slim:
> 
> >    /[if lt IE 9]
> >      script type='text/javascript' src='//html5shim.googlecode.com/svn/trunk/html5.js'
> >      link rel='stylesheet' type='text/css' href="/stylesheets/ie8grid.css" 
> > -  script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"
> > -  / jQuery fallback if CDN fails
> > -  javascript:
> > -    window.jQuery || document.write('<script src="#{site.base_url}/#{site.context_url}/javascripts/vendor/jquery.js"><\/script>')
> > -  script src="#{site.base_url}/#{site.context_url}/javascripts/jquery.feeds.js"
> > -  script src="#{site.base_url}/#{site.context_url}/javascripts/jquery.timeago.js"
> > +
> > +  == javascripts "top" do
> > +    script src="#{site.base_url}/#{site.context_url}/javascripts/vendor/jquery.js"
> Scripts should not be loaded in the head section. It slows the rest of the site down blocking on fetching and loading the scripts, that's why it's common practice now to load them at the bottom of the body.
> 
> —
> Reply to this email directly or view it on GitHub.
>