Categoría: BRICKS DEFER FREE JAVASCRIPT WORDPRESS WP_ENQUEUE_SCRIPT
-
Loading External Scripts in WordPress With Defer Attribute
The next major version of WordPress, 6.3 includes a loading strategy for scripts so we can easily specify that the scripts have defer or async attributes in the script tag HTML. This page on Make WordPress Core provides the details. Below is a simplified version of the same. When enqueuing (putting stuff in a queue…