That will enhance the user experience, increase page load speed. We’ll also talk about the pros and cons of removing these files, so read the entire article.
Are you facing render-blocking or an issue with the page speed of the Blogger blog? Then, you can perform this method of removing the default JS and CSS and preventing the scripts from loading.
In that case, the CSS and JS generated by Blogger is unused. These files take extra space and extra size, which slow down the Blogger blog. To make a website fast, you need to remove all unnecessary elements that the Blogger blog does not use.
Remove Blogger default unused CSS
To remove the default CSS of a Blogger blog, you’ve to edit the Blogger XML theme file. Now check the <html> tag in the theme, add
css='false' into this line, and done. You removed the unused CSS of the Blogger blog. The Codes will look like this.
Before making any change, the theme code will look like
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html> <html b:defaultwidgetversion='2' b:layoutsVersion='3' b:responsive='true' ......>
After making the changes in the code to remove CSS from the blog. Code will look like
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html> <html b:css='false' b:defaultwidgetversion='2' b:layoutsVersion='3' b:responsive='true' ......>
b:js='false' in the
<html> tag as shown below.
After making the changes in the code to remove JS from the blog. Code will look like
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html> <html b:js='false' b:defaultwidgetversion='2' b:layoutsVersion='3' b:responsive='true' ......>
Removing default JS and CSS from Blogger
b:js='false' in the
<html> tag of the template.
The final code after removing default JS and CSS from the Blogger blog will look like this.
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html> <html b:css='false' b:js='false' b:defaultwidgetversion='2' b:layoutsVersion='3' b:responsive='true' ......>
By using the above method, you can remove default JS and CSS from the Blogger blog.
Pros of Removing default JS
- It enhances the load-time, boosts up website speed,
- Enhance user experience,
- Boost SEO of the blog.
Cons of Removing default JS from the Blogger blog.
There are some limitations If you remove default JS from the Blogger blog. These are
- The Contact form will not work if it is on the portal’s layout, But don’t worry; you can create a contact us page for the Blogger blog.
- You will not be able to modify your theme by just visiting the Layout section of your website. At any point in time, if you’ve to make some changes in the layout of your web page, then in this case. You have to remove
b:js='false'from the HTML tag and customized it. You can add it again after making the required changes.
If you like this article or face any issues. Please comment below. It appreciates me for writing such things. Thank you. :)