Loader::output_header_preload_tags_for_type( string $type, array $allowlist = array() )
Output a preload link tag for dependencies (and their sub dependencies) with an optional allowlist.
Description Description
See: https://macarthur.me/posts/preloading-javascript-in-wordpress
Parameters Parameters
- $type
-
(Required) Dependency type - 'script' or 'style'.
- $allowlist
-
(Optional) List of allowed dependency handles.
Default value: array()
Source Source
File: packages/woocommerce-admin/src/Loader.php