[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 18:44:27 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 scep):

 Replying to [comment:10 toscho]:
 > These attributes are backwards compatible. I don’t think supporting them
 would do any harm.
 >
 > But I don’t like more arguments for `wp_register_script()`. We have
 already four, that’s more than enough. How about a very simple extra
 string in `WP_Scripts::do_item()`?
 >
 I agree that since they are backwards compatible they should be supported.

 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.

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


More information about the wp-trac mailing list