[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/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):
  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.

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



Generated: Thu Nov 21 01:00:03 2024 Cross-referenced by PHPXref 0.7.1