How to Defer parsing JavaScript to reduce blocking of page rendering.?
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
- darb
- Joomla! Ace
- Posts: 1319
- Joined: Thu Jul 06, 2006 12:57 pm
- Location: Stockholm Sweden
- Contact:
How to Defer parsing JavaScript to reduce blocking of page rendering.?
Hi
do anyone know how to Defer parsing JavaScript to reduce blocking of a Joomla page for rendering rendering? Any tips appreciated though I got this implications from testing a site https://gtmetrix.com/
do anyone know how to Defer parsing JavaScript to reduce blocking of a Joomla page for rendering rendering? Any tips appreciated though I got this implications from testing a site https://gtmetrix.com/
Success in the long run Its not about the code its about the people and community that's make it!
Its not what you say its what you do that matters!
Darb - aka ssnobben
Its not what you say its what you do that matters!
Darb - aka ssnobben
-
- Joomla! Apprentice
- Posts: 8
- Joined: Tue Jan 24, 2017 12:35 am
Re: How to Defer parsing JavaScript to reduce blocking of page rendering.?
You need to NOT load js above the fold as google says. Simply use async loading for js scripts, plenty of snippets on google for this, as this is not strictly a Joomla problem.
- stormbyte
- Joomla! Intern
- Posts: 81
- Joined: Tue Mar 03, 2015 1:16 pm
- Location: paris
- Contact:
Re: How to Defer parsing JavaScript to reduce blocking of page rendering.?
You can use JCH optimize extension you've inside many options and you can defer the JS also. Check GTMETRIX before JCH then after, you'll see the difference!
Kind Regards, A Joomla fan!
IT Security Consultant https://www.akaoma.com
Cybersecurity Blog https://www.akaoma.com/ressources/blog
IT Security Consultant https://www.akaoma.com
Cybersecurity Blog https://www.akaoma.com/ressources/blog
- darb
- Joomla! Ace
- Posts: 1319
- Joined: Thu Jul 06, 2006 12:57 pm
- Location: Stockholm Sweden
- Contact:
Re: How to Defer parsing JavaScript to reduce blocking of page rendering.?
Seems not working with JCH though https://www.jch-optimize.net/forum/trou ... etrix.htmlstormbyte wrote:You can use JCH optimize extension you've inside many options and you can defer the JS also. Check GTMETRIX before JCH then after, you'll see the difference!
Success in the long run Its not about the code its about the people and community that's make it!
Its not what you say its what you do that matters!
Darb - aka ssnobben
Its not what you say its what you do that matters!
Darb - aka ssnobben
- stormbyte
- Joomla! Intern
- Posts: 81
- Joined: Tue Mar 03, 2015 1:16 pm
- Location: paris
- Contact:
Re: How to Defer parsing JavaScript to reduce blocking of page rendering.?
no don't worry it's working fine! your link is showing a user having some trouble many coming from 3rd party extensions.
I'm using it on my website https://www.akaoma.com and there's absolutely no problem since years now!
You can check the HTML code with defer option activated on the required lines.
Hope it helps!
I'm using it on my website https://www.akaoma.com and there's absolutely no problem since years now!

Hope it helps!
Kind Regards, A Joomla fan!
IT Security Consultant https://www.akaoma.com
Cybersecurity Blog https://www.akaoma.com/ressources/blog
IT Security Consultant https://www.akaoma.com
Cybersecurity Blog https://www.akaoma.com/ressources/blog
-
- Joomla! Guru
- Posts: 711
- Joined: Wed Nov 18, 2009 3:53 pm
Re: How to Defer parsing JavaScript to reduce blocking of page rendering.?
It's been a while since these advices, still best solutions either using Async and Defer or JCH optimize? At the moment I'm trying the Javascript Async & Defer plugin, let's hope it speeds things up improving parsing and reducing blocking.
- leolam
- Joomla! Master
- Posts: 19396
- Joined: Mon Aug 29, 2005 10:17 am
- Location: Netherlands/ UK/ S'pore/Jakarta/ North America
- Contact:
Re: How to Defer parsing JavaScript to reduce blocking of page rendering.?
JCH works as a charm on our own websites. Btw I would use Google Insight for the speedtest. Gives a better picture imho https://developers.google.com/speed/pagespeed/insights/
Leo
Leo

Joomla's #1 Professional Support Provider:
-> Joomla Professional Support: https://gws-desk.com -
-> Joomla Specialized Hosting Solutions: https://gws-host.com -
Member Joomla Bug Squad & Joomla CMS Release Team
-> Joomla Professional Support: https://gws-desk.com -
-> Joomla Specialized Hosting Solutions: https://gws-host.com -
Member Joomla Bug Squad & Joomla CMS Release Team
-
- Joomla! Guru
- Posts: 711
- Joined: Wed Nov 18, 2009 3:53 pm
Re: How to Defer parsing JavaScript to reduce blocking of page rendering.?
This speed test gives appalling results compared to others, is it only me?leolam wrote: ↑Wed Sep 05, 2018 5:43 amI would use Google Insight for the speedtest. Gives a better picture imho https://developers.google.com/speed/pagespeed/insights/