User tests: Successful: Unsuccessful:
Pull Request for Issue # .
JHTML compatible with these changesApply patch and observe the produced head, inline scripts should be between script tags with src, same for the styles
Also the jQuery.noConflict(); should be inline and not a file...
for inline script:
JHtml::_('script', '', ['inline' => ‘content for inline script’]);For inline style:
JHtml::_('stylesheet', '', ['inline' => ‘content for inline script’]);Check the structure of the head:

YUP!
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries |
| Labels |
Added:
?
|
||
| Category | Libraries | ⇒ | Libraries JavaScript |
Two simple examples to point out how the system fails badly with its current architecture:
CSS
com_something, loads:
.btn { background-color: white;}.btn { background-color: black;}.btn { background-color: red;}Expected colour red, actual black
JS
com_something, loads:
Expected function3, actual function2
Both Css and JS need to be appended in the order they had been inserted... :)
I guess this won't go anywhere, closing
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-03-13 12:10:31 |
| Closed_By | ⇒ | dgt41 |
| Status | Closed | ⇒ | New |
| Closed_Date | 2017-03-13 12:10:31 | ⇒ | |
| Closed_By | dgt41 | ⇒ |
| Status | New | ⇒ | Pending |
Closing, obviously Joomla 4 will be out of sync with the current Javascript and as people keep telling me I shouldn't run after unicorns (in this case js modules)...
| Status | Pending | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-03-09 21:00:30 |
| Closed_By | ⇒ | dgrammatiko |
Ok so what's the advantage of this? Like if I was building JDocument from scratch i would probably do something like this. But I don't see the advantage of changing the ordering that inline scripts/styles and files get loaded given how long it's been this way at this point