[wp-trac] [WordPress Trac] #12009: Add support for HTML 5 "async" and "defer" attributes

WordPress Trac noreply at wordpress.org
Wed Oct 24 18:55:25 UTC 2012


#12009: Add support for HTML 5 "async" and "defer" attributes
-------------------------------------+-----------------------------
 Reporter:  Otto42                   |       Owner:  azaozz
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  JavaScript               |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+-----------------------------

Comment (by ryanve):

 The ideal way to handle script/style attributes is via #22249 because it
 is future-proof for any new attributes that are invented.

 The 'script_loader_tag' should be added for consistency with the already
 existing 'style_loader_tag' to allow for customizations that go beyond
 attributes, such as wrapping in IE conditionals or adding inline scripts.
 (#13592 and #22245)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12009#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list