Front_End::filter_script_loader_tag( string $tag, string $handle )
Adds async/defer attributes to enqueued / registered scripts.
Description
If #12009 lands in WordPress, this function can no-op since it would be handled in core.
Parameters
- $tag
-
(Required) The script tag.
- $handle
-
(Required) The script handle.
Return
(string) Script HTML string.
Source
File: inc/core/front_end.php
Expand full source code Collapse full source code View on Github