How to Eliminate render-blocking Javascript and CSS in Blogger
Pretty posts
May be recently, you checked your website by google page speed tools and seen that google tells you to eliminate render blocking javascript and css from several notice and that's can effect on your page speed. If you want to increase google pagespeed score, you need to solve this problem. So let's follow my tutorial, how to eliminate render-blocking javascript and css from blogger/blogspot.
** Backup your theme before apply this tricks**
Eliminate CSS Bundle - Blogger automatically create two css widget bundles for your website. It's looks like.
To remove these bundle, follow simple steps.
Step 1: Go to
Step 2: Click on
Step 3: Click anywhere inside the code area
Step 4: Press
Step 5: Now search following code
Now again search your website by google pagespeed insights tools and you will see that css bundle issue is solved.
Eliminate JS Bundle - Like css blogger automatically create
Step 1: Search following code
That's it. Now see page speed score and it's improve.
How to fix contact form problem after applying JS bundle eliminate tricks - If you use contact form in static page and also want to remove js bundle then you need to follow my another trick. Because after removing js bundle, your contact from will not work anymore. This trick will not work, if you use contact form in sidebar or footer.
Step 1: Search following code
Step 3: Click on
In this tricks, i have used blogger conditonal tags so that default javascript widget.js file only loads when someone visits contact us page, and other page it will be ignore.
** Backup your theme before apply this tricks**
Eliminate CSS Bundle - Blogger automatically create two css widget bundles for your website. It's looks like.
To remove these bundle, follow simple steps.
Step 1: Go to
Blogger>ThemeStep 2: Click on
Edit HTMLStep 3: Click anywhere inside the code area
Step 4: Press
CTRL+F to open a search barStep 5: Now search following code
<head>Step 6: Replace
<head> tags by below code<head>Step 7: Again search following code
</head>Step 8: And replace
</head> tags by below code</head><!--<head/>-->Step 9: Click on
Save theme and you are done.Now again search your website by google pagespeed insights tools and you will see that css bundle issue is solved.
Eliminate JS Bundle - Like css blogger automatically create
widgets.js bundle for javascript. To remove these bundle follow below tutorial.Step 1: Search following code
</body>Step 2: Replace
</body> tags by below code<!--</body>--></body>Step 3: Click on
Save themeThat's it. Now see page speed score and it's improve.
How to fix contact form problem after applying JS bundle eliminate tricks - If you use contact form in static page and also want to remove js bundle then you need to follow my another trick. Because after removing js bundle, your contact from will not work anymore. This trick will not work, if you use contact form in sidebar or footer.
Step 1: Search following code
</body>Step 2: Replace
</body> tags by below code<b:if cond='data:blog.url != "http://www.codiblog.com/search/label/Contact_Us"'><!--</b:if></body><b:if cond='data:blog.url != "http://www.codiblog.com/search/label/Contact_Us"'>--></body></b:if>Customize: Replace
http://www.codiblog.com/search/label/Contact_Us with your contact us page link url.Step 3: Click on
Save theme and you are done.In this tricks, i have used blogger conditonal tags so that default javascript widget.js file only loads when someone visits contact us page, and other page it will be ignore.





Good evening. In my blogger template have following < body > tag
ReplyDelete< body expr:class='data:blog.pageType' expr:data-label='data:blog.searchLabel' itemscope='' itemtype='http://schema.org/WebPage' >
When I try to add you code line an error appear to indicates that < body > tag is not closed.
I updated the code and it will be </body> tags not <body> tags. Pls see it.
DeleteTnx
DeleteThank you for solution i find there after i tried another sometime ago. for head and /head, i found quick solution. but the problem is js. i can not look for solution on js:(https://apis.google.com/js/plusone.js)
ReplyDeletedo you know where i can solve it?
i will appreciate you if you kindly reply me
source
https://muyibusiness.blogspot.com
I have seen your site source code and you have used two plusone.js code that is not good. Try to use free templates or premium templates.
DeletePremium templates: http://template.codiblog.com/
Free Templates: You will find more free templates in internet.
Thank you for the tutorial, i used in my blog and its increase 3 point for mobile speed and 1 point for desktop speed. I would appreciate if you have advice to increase my blog speed.
ReplyDeletewww.nananggunawan.com
I've seen this before, but altering the < /head> didn't do justice to my blog @ . the page became not so beautiful. I love your theme.
ReplyDeleteThanks Jillur Rahman Bro for your great tutorial. This render blocking javascript and css are the main problem for any blogger template. Now i can easily disable it :)
ReplyDeleteafter change head code, width 100% not working.
ReplyDeletehow to fix it?
What do you mean by 100%? You can try to add value like 100px/400px etc in max-width or width.
DeleteI used this method on my blog http://latestadvice.blogspot.com and my speed increased from 70 to 95/100. Thanks for sharing :)
ReplyDelete