How To Remove Render-Blocking JavaScript By StatCounter

Filed Under: |

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. See the image below:

In order to get rid of this 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"

3. Add this line:  type="text/javascript" async as shown below:

<script type="text/javascript"
src="" type="text/javascript" async>

3. Click Update File button.

4. That's all.

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

Written by: Kher Cheng Guan
What Is This Why Like That How To Do
Related Posts Plugin for WordPress, Blogger...