mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Script Loader: Add support for HTML 5 "async" and "defer" attributes.
This allows developers to register scripts with an intended loading strategy by changing the `$in_footer` parameter of `wp_register_script` and `wp_enqueue_script` to an array that accepts both an `in_footer` and `strategy` argument. If present, the loading strategy attribute will be added to the script tag when that script is printed to the page as long as it is not a dependency of any blocking scripts, including any inline scripts attached to the script or any of its dependents. Props 10upsimon, thekt12, westonruter, costdev, flixos90, spacedmonkey, adamsilverstein, azaozz, mukeshpanchal27, mor10, scep, wpnook, vanaf1979, Otto42. Fixes #12009. git-svn-id: https://develop.svn.wordpress.org/trunk@56033 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -68,7 +68,9 @@
|
||||
|
||||
<!-- From DOMDocument. -->
|
||||
<element value="childNodes"/>
|
||||
<element value="firstChild"/>
|
||||
<element value="formatOutput"/>
|
||||
<element value="lastChild"/>
|
||||
<element value="nodeName"/>
|
||||
<element value="nodeType"/>
|
||||
<element value="parentNode"/>
|
||||
|
||||
Reference in New Issue
Block a user