[wp-trac] [WordPress Trac] #27672: Add async argument to wp_register_script and wp_enqueue_script

WordPress Trac noreply at wordpress.org
Fri Apr 4 16:54:41 UTC 2014


#27672: Add async argument to wp_register_script and wp_enqueue_script
-------------------------------------+-----------------------------
 Reporter:  nickciske                |      Owner:
     Type:  enhancement              |     Status:  new
 Priority:  normal                   |  Milestone:  Awaiting Review
Component:  Script Loader            |    Version:  trunk
 Severity:  normal                   |   Keywords:
  Focuses:  javascript, performance  |
-------------------------------------+-----------------------------
 Though '''defer''' is a mess and '''async''' isn't supported in older IE
 browsers, it seems like allowing async with a default of ''false'' gives
 plugin and theme authors the choice to use it if it's right for them...
 without hacky workarounds.

 Some background:
 http://www.html5rocks.com/en/tutorials/speed/script-loading/

--
Ticket URL: <https://core.trac.wordpress.org/ticket/27672>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list