Technobezz

Remove render-blocking JavaScript in wordpress

Today I found a way to get an 80+/100  on Google PageSpeed Insights. Remove render-blocking JavaScript  was the main issue that I was encountering that’s was slowing down my WordPress website.I didn’t want to manually edit the Javascript files from my theme because I want to mess up nothing. Jquery is the culprit that may be causing the low grade .Most of these WordPress theme enabled Jquery to load first before the website contents.

“Eliminate render-blocking JavaScript and CSS in above-the-fold content” or “Leverage browser caching” using Google PageSpeed Insights, here’s a solution 

Today I have tested with a WordPress plugin to speed up my website 70% faster and my Google Score went from 70 to 86 with little to no technical work .

Google’s Recommendation

JavaScript needed to render the above-the-fold region should be inlined, and JavaScript needed to add additional functionality to the page should be deferred until after the above-the-fold content has been delivered.

Remove render-blocking JavaScript in WordPress

>Login to your WordPress

>Add New Plugin

>Search for “Autoptimize”

or download it here

>install and activate

>Check the “Optimize CSS Code” and Optimize JavaScript Code boxes

loo2

 

>Save changes then empty cache

Google PageSpeed Insights before

loo2

Remove render-blocking JavaScript in wordpress

Remove render-blocking JavaScript in WordPress

 

Google PageSpeed Insights After

sd

Remove render-blocking JavaScript in wordpress

Remove render-blocking JavaScript in WordPress

If you want super speed. then add this to your htaccess:

## EXPIRES CACHING ##

ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"

## EXPIRES CACHING ##

 

 

What’s Yours?, share yours in the comment section!

RelatedTop Best Free WordPress Themes

Related3 WordPress Plugins To Speed Up Your Website

More on this topic

Leave a Reply

4 Comments

  1. guzie June 22, 2014
    • Harish Bali June 23, 2014
  2. guzie June 22, 2014
    • Harish Bali June 23, 2014
Apple iPhone SE 2 Ann Bunny
iPhone SE: Still Very Popular Among Apple Devices Says Ann Bunny
Samsung Galaxy S10 5G camera
Samsung Galaxy S10, S10 Lite and S10+: Here’s all we know about the Displays and Cameras
Samsung Galaxy S10: Special Edition 5G Phone will be powered by Snapdragon 855 SoC 8
Samsung Galaxy S10: Special Edition 5G Phone will be powered by Snapdragon 855 SoC
Samsung Galaxy S10: Special 5G Phone Likely to get Verizon's 5G Service 10
Samsung Galaxy S10: Special 5G Phone Likely to get Verizon’s 5G Service
Android Apple Gaming How To Internet iPhone Personal Computers Review Site review The Top Best
How to Fix iPhone XS Battery Life Issues
How to Fix iPhone XS Battery Life Issues

With a typical battery usage of about 10-12 hours, you can...

GTA 6 Rockstar
GTA 6: Rockstar May Choose a 1970’s Dateline to Avoid Trouble

GTA 6: The jury is still out on when the next...

The Elder Scrolls 6
The Elder Scrolls 6: A New Engine is Certain to be Developed

The Elder Scrolls 6: The gaming industry watchers have been informing...