Don't need values for async/defer on HTML5#11359
Don't need values for async/defer on HTML5#11359rdeutz merged 1 commit intojoomla:stagingfrom mbabker:async-defer
Conversation
|
I have tested this item ✅ successfully on e0cca7b This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11359. |
|
I have tested this item ✅ successfully on e0cca7b This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11359. |
|
Rtc This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11359. |
|
No labels... |
|
The bot, like me, is taking today off to drink excessively On Saturday, July 30, 2016, Luca Marzo notifications@github.com wrote:
|
|
It's saturday, maybe it's on holiday :) |
|
I think there might be a bigger issue. Over the last few days I have On 30 July 2016 at 19:08, Luca Marzo notifications@github.com wrote:
Brian Teeman |
|
Adding it manually seemed to have worked |
|
I wouldn't change the attributes, as ATM it's possible to serve document as XHTML5. There is no harm in keeping it how it is. |
|
You have to explicitly call |
|
Well, I'm for full HTML attributes, just like closing all HTML tags (which is not required in HTML5). |
Summary of Changes
In HTML5 we don't need to specify values for the async and defer attributes on script tags. So, save a few characters in the HTML output, don't send them.
Testing Instructions
Pre-patch when adding an async'd script the output should be similar to this:
Post-patch, it should look like this: