Use the new WP core method of adding defer/async to JavaScript assets #2268
Labels
Backend (Server)
Related to the server-side (includes PHP, HTML, etc).
Frontend (Script)
Related to the client-side JavaScript.
Milestone
Nebula has a Rube Goldberg machine of a way to async/defer JavaScript assets, but now as of WP core 6.3 they are no longer needed. This will reduce the complexity of registering Nebula assets. However, some of the functionality will still be needed for
module
scripts andcrossorigin
assets, so we'll need to surgically remove the vestigial functionality.Documentation for the new
wp_register_script()
function: https://make.wordpress.org/core/2023/07/14/registering-scripts-with-async-and-defer-attributes-in-wordpress-6-3/The text was updated successfully, but these errors were encountered: