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

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 24 21:37:05 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 scribu):

 Replying to [comment:12 scep]:
 > I also agree that my patch adds a lot of extra arguments for the
 register and enqueue functions. I like you filter idea but it seems like
 it would lead to having a lot of code in the return function to identify
 which scripts should have extra info attached to them.

 Every script has a unique ID which it can be identified by (the first
 parameter to wp_enqueue_script()).

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


More information about the wp-trac mailing list