User tests: Successful: Unsuccessful:
Pull Request for pr #22460.
Deprecates when Javascript files are loaded in none defer mode. This is a less disruptive way to migrate the eco system to load JS files in a none blocking way.
Open the back end.
All is working as expected.
All is working as expected.
Loading JS files in defer mode must be documented.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Or we can just add a deprecate message when the defer attribute is not set?
That still creates the impression that Joomla as a platform is stating "the only way we support JavaScript in our API is when it is deferred". Which is a wrong statement to make.
Basically i would not do nothing on this matter. I would leave freedom to developers if loading a script in deferred mode or not, hence both methods are perfectly correct. Additionally, in some cases it could be needed to load a script in a non-deferred way to have things working.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-11-19 19:17:23 |
Closed_By | ⇒ | laoneo | |
Labels |
Added:
?
?
|
I don't think it is our job as a software distributor to force all JavaScript to be loaded in this way. We should support the HTML standard, which includes optionally deferring scripts. We can default the platform to it (accounting for end user concerns), we should not force the platform to only use it.