Any chance you can implement these in a future release?
WordPress 6.3 introduces support for registering scripts with
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.