+91 88 00 563434 sales@webhostingpeople.net

Our Knowledge Base Articles

Company Blog

How to Fix Render-Blocking JavaScript and CSS in WordPress

You are here:

The WordPress is an open supply web site creation software written in PHP. Each WordPress web site accommodates a theme and plugins that add the JavaScript and CSS recordsdata to the front-end of the WordPress web site. The primary benefit of those scripts which may enhance the web site efficiency, and in addition, they’ll block the rendering of the web page. A Internet browser will initially load these scripts and CSS earlier than loading the remainder of the online web page contents. We will check a web site in opposition to the Google’s pointers for velocity and efficiency by the Google PageSpeed Rating, this may even assist to optimize by provides options to enhance your website’s web page load time.

Blocking Javascript And Css


Let’s focus on extra how we will Repair this efficiency situation of WordPress web sites.

We will optimize the web site by eliminating these JavaScript and CSS by a WordPress plugin “Autoptimize”. Set up the plugin by your WordPress admin dashboard and upon activation, we have to go to the “Settings >> Autoptimize” web page to configure the plugin settings on our WordPress.

Blocking Javascript And Css


Checks the field subsequent to JavaScript and CSS choices as above after which click on on Save Modifications button.

After making the adjustments, check your web site once more with the Google PageSpeed software and now you may see the efficiency enhance. If the check outcomes nonetheless present some render blocking scripts, then we have to come again to the plugin’s settings web page and choose “Present Superior settings” button on the high.

Blocking Javascript And Css


On this Superior setting, we will enable the plugin to incorporate the Inline JavaScript and take away the scripts which can be excluded by default akin to jquery.js or seal.js and so on.

Then scroll all the way down to CSS choice and permit the plugin to optimize the inline CSS by checks the column subsequent to it. Then click on on “Save Modifications and empty Cache”. As soon as you’re carried out with these steps check the web site on Google PageSpeed software. Word that we have to examine the web site totally to make sure that nothing is damaged on the internet web page by optimizing the JavaScript and CSS.


For those who want any additional assist please do attain our help division.



Leave a Comment