How to remove the unused Javascript from blog?

 Hello friend! Today I'm here with the new topic of how to remove the unused Java-script from your Html code of Theme. First of all ,visit this websites Page Speed Insight to check the unused Java script:   Page speed insight .

websites

After visiting
you will get the space at the header where you need to put your websites URL and click on analyze. 

After this you will see the reading number of the websites speed. If reading number is red then your websites speed is low, for yellow colour reading number, your website speed is normal and for green colour reading number it means excellent speed.

Just below this there is given : Opportunities,These suggestions can help your page load faster. They don't directly affect the Performance score.

Just below this you will get the option to Remove the unused JavaScript. Click on it.

converting

You will notice two type of file, one is ( .js ) types and (.css) type. Keep this in mind that .Js type file are useful , so you need to remove only (.css) type file. Copy the url inside the bracket and go to the Theme. 

Click on the Customize side and download the BACKUP. If their is any wrong in editing you can easily restore the Theme. 

Again click on the  Edit Html, and Click on the Html Code .

Press Ctrl+F and paste that previous copied Url from the bracket inside the search box. Click on the search

After it you will find the searched code . Select it and delete that item. 

Return to the Page speed checker and Reanalyze your website Url.

You will find the speed of your websites increases.

No comments: