Wednesday, 20 November 2013

Page Speed Insight: Java Script

Page Speed Insight: Java Script - Introduction


If you adminester your own website then you may be annoyed as I am at the apprent change of heart google have had with reagrds to placement of java scrpit in your pages html.

I do not have much java script in my website just "plus one" and some feed convertors.

Page Speed Insight: Java Script - The Problem

Upon running page speed insights you will see the following:


"Your page has 12 blocking script resources and 2 blocking CSS resources. This causes a delay in rendering your page."
Now this is annoying becuase when I added the java script google gave the following guide for placemnet:

<!-- Place this tag in your head or just before your close body tag -->

So now it has decided the "head" is no good and I have to go through and move all the code down the the bottom of "body"? 

Al that is require is to move:

<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>

to just above the close body tag.

So a simple fix but maually applied over 100 + pages this is a ball ache of the highest degree.

No comments:

Post a Comment

If you leave question they will get answered! But no spam please I will delete it. :-(