May 9, 2015

Textual description of firstImageUrl

How To Remove StatCounter Render-Blocking JavaScript

|
Find out how to remove StatCounter render blocking JavaScript  to improve the loading speed of your website or blog.

That day when I checked with Google Page Speed Insights, I saw this problem listed under Eliminate render-blocking JavaScript and CSS in above-the-fold content.

It says: Your page has one blocking script resources.... And that script is from StatCounter.

After trying out a few methods, I found one that really get rid of this StatCounter JavaScript.

how to remove StatCounter render blocking JavaScript

How To Remove StatCounter Render-Blocking JavaScript


Now, let share with you how to remove StatCounter blocking JavaScript.

This is what you need to do:

1. Look through the StatCounter code which you have installed or pasted in the footer.php.

2. Look for the line which says: 

<script type="text/javascript"
src="http://www.statcounter.com/counter/counter.js">
</script>
3. Add this line:  type="text/javascript" async as shown below:

<script type="text/javascript"
src="http://www.statcounter.com/counter/counter.js" type="text/javascript" async>
</script>
4. Click the "Update File" button.

5. That's all.

Now check with Google Page Speed Insights and you should not see the blocking StatCounter JavaScript anymore.

Related Tips:

*  How To Remove Bundle V2 CSS And Dyn Authorization CSS For Blogger 

* How To Remove Render Blocking Plusone JavaScript For Blogger

* How To Remove Font Awesome CSS Render Blocking For Blogger

* How To Enable HTTP Keep-Alive In WordPress To Increase Speed