[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Javascript Loader Class Allow `async` and `defer` while enqueuing Javascript.
File Size: | 51 lines (1 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
TwentyTwenty_Script_Loader:: (1 method):
filter_script_loader_tag()
Class: TwentyTwenty_Script_Loader - X-Ref
A class that provides a way to add `async` or `defer` attributes to scripts.filter_script_loader_tag( $tag, $handle ) X-Ref |
Adds async/defer attributes to enqueued / registered scripts. If #12009 lands in WordPress, this function can no-op since it would be handled in core. since: Twenty Twenty 1.0 return: string Script HTML string. param: string $tag The script tag. param: string $handle The script handle. |
Generated: Sun Nov 3 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |