How to Defer parsing JavaScript to reduce blocking of page rendering.?

Discussion regarding Joomla! 3.x Performance issues.

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.
User avatar
darb
Joomla! Ace
Joomla! Ace
Posts: 1121
Joined: Thu Jul 06, 2006 12:57 pm
Location: Stockholm Sweden
Contact:

How to Defer parsing JavaScript to reduce blocking of page rendering.?

Postby darb » Tue Jan 24, 2017 11:23 am

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/
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

lextech
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Tue Jan 24, 2017 12:35 am

Re: How to Defer parsing JavaScript to reduce blocking of page rendering.?

Postby lextech » Wed Jan 25, 2017 11:18 pm

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.

User avatar
stormbyte
Joomla! Intern
Joomla! Intern
Posts: 77
Joined: Tue Mar 03, 2015 1:16 pm
Location: paris
Contact:

Re: How to Defer parsing JavaScript to reduce blocking of page rendering.?

Postby stormbyte » Wed Feb 22, 2017 6:34 am

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
IT Security Blog https://www.akaoma.com/ressources/blog

User avatar
darb
Joomla! Ace
Joomla! Ace
Posts: 1121
Joined: Thu Jul 06, 2006 12:57 pm
Location: Stockholm Sweden
Contact:

Re: How to Defer parsing JavaScript to reduce blocking of page rendering.?

Postby darb » Mon Mar 13, 2017 1:33 pm

stormbyte 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!


Seems not working with JCH though https://www.jch-optimize.net/forum/trou ... etrix.html
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

User avatar
stormbyte
Joomla! Intern
Joomla! Intern
Posts: 77
Joined: Tue Mar 03, 2015 1:16 pm
Location: paris
Contact:

Re: How to Defer parsing JavaScript to reduce blocking of page rendering.?

Postby stormbyte » Mon Mar 13, 2017 1:51 pm

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!
Kind Regards,
A Joomla fan!

IT Security Consultant https://www.akaoma.com
IT Security Blog https://www.akaoma.com/ressources/blog


Return to “Performance - Joomla! 3.x”

Who is online

Users browsing this forum: No registered users and 4 guests