[ Index ]

PHP Cross Reference of WordPress




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

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

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.
since: Twenty Twenty 1.0
param: string $tag    The script tag.
param: string $handle The script handle.

Generated: Sun Jun 26 01:00:03 2022 Cross-referenced by PHPXref 0.7.1