?
avatar doxadigital
doxadigital
4 Nov 2015

As Google pagespeed (and many other tools) suggest.. we need to have the ability to load scripts on the footer, i don't see this is supported by joomla. A simple enhancement that bring BIG impact in pagesload (and SEO).

Votes

# of Users Experiencing Issue
2/2
Average Importance Score
4.50

avatar doxadigital doxadigital - open - 4 Nov 2015
avatar itsam
itsam - comment - 4 Nov 2015

+1 by me.
Maybe another flag on the addScript and addScriptDeclaration methods should be introduced.

Best.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8271.

avatar Bakual
Bakual - comment - 4 Nov 2015

Just a note. To my knowledge Google doesn't recommend to load the script in the footer. Their advise is to load a small script which in turn will load all the scripts after the page is loaded.

Joomla already supports to load the script asynchronous or deferred. Both ways would help with pagespeed and are part of the HTML specification. But it needs to be declared by the extension developers in the code. Because not every script can be loaded with those options.

avatar Fedik
Fedik - comment - 4 Nov 2015

as @Bakual already noted, Google suggests to use defer ....

but we can't do it by default while we have inline JS code, and while other extension have inline JS code, also this is the reason why it will not work if we place the script at the footer.

so no chance for Joomla! 3 ... I think :ghost:

but maybe it can be reviewed for Joomla! 4 ...
there we can declare that we will use defer (or else) so extensions developer will be ready ... just theory

avatar brianteeman brianteeman - change - 8 May 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-05-08 16:56:15
Closed_By brianteeman
avatar brianteeman brianteeman - close - 8 May 2016
avatar brianteeman brianteeman - close - 8 May 2016
avatar brianteeman
brianteeman - comment - 8 May 2016

Closed as we have combined several identical feature requests to #10250


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8271.

Add a Comment

Login with GitHub to post a comment