Add controls for WP 6.3’s new asynch & defer attributes

Any chance you can implement these in a future release?


WordPress 6.3 introduces support for registering scripts with async and deferattributes as part of an enhancement to core’s existing Scripts API. This addresses a long-standing Trac ticket, and adds the ability to define a loading strategy for scripts. Supported strategies are as follows:

  • Blocking (default, this strategy is not supplied)
  • Deferred (by supplying a defer loading strategy)
  • Asynchronous (by supplying an async loading strategy)

This enhancement was originally proposed in December 2022.

4 Likes