[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)





/wp-content/themes/twentytwenty/classes/ -> class-twentytwenty-script-loader.php (summary)

Javascript Loader Class Allow `async` and `defer` while enqueuing Javascript.

File Size: 47 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

TwentyTwenty_Script_Loader:: (1 method):

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.

return: string Script HTML string.
param: string $tag    The script tag.
param: string $handle The script handle.

Generated : Thu Jun 4 08:20:02 2020 Cross-referenced by PHPXref