Skip to Content

defer_async_scripts()

Add defer/async to script URLs as they are called by WordPress.

PHP April 26, 2017

Usage

This function runs automatically, so it is not called manually. Is this incorrect?

Additional Notes

This is not an ideal solution, but fills a gap until this is a feature of WordPress core.

Source File

This function was not found in /libs/Optimization.php. Please report this error.

No Hooks

This function does not have any filters or actions available. Request one?

Override

This function can not be short-circuited with an override filter. Request one?