User tests: Successful: Unsuccessful:
Pull Request for New Issue.
If an extension has acessing the JDocument::_scripts
public property, with the changes in the script render it can now cause the script to add async and defer attributes, even if set to false.
This PR intends to correct that.
$this->_scripts = array_merge(array('/test3.js' => array('mime' => 'text/javascript', 'defer' => '', 'async' => '')), $this->_scripts);
$this->_scripts = array_merge(array('/test2.js' => array('mime' => 'text/javascript', 'defer' => false, 'async' => false)), $this->_scripts);
$this->_scripts = array_merge(array('/test1.js' => array('mime' => 'text/javascript', 'defer' => true, 'async' => true)), $this->_scripts);
<!-- 3.6.4 -->
<script src="/test1.js" defer async></script>
<script src="/test2.js"></script>
<script src="/test3.js"></script>
<!-- 3.7.0 -->
<script src="/test1.js" defer async></script>
<script src="/test2.js" defer async></script>
<script src="/test3.js" defer async></script>
None.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Milestone |
Added: |
I have tested this item
I have tested this item
Milestone |
Removed: |
Status | Pending | ⇒ | Ready to Commit |
RTC
Thanks @andrepereiradasilva
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-12-18 15:11:18 |
Closed_By | ⇒ | zero-24 | |
Labels |
Added:
?
|
Thanks
can anyone please test this?
@wilsonge @zero-24 maybe a release blocker here?