` must have a valid `as` value
-
I got this warning in Chrome “<link rel=preload>
must have a valid
as` value”.On line 74 the ‘as’ is set as ‘stylesheet’ for css files:
function http2_link_link_as( $current_hook ) {
return ‘style_loader_src’ === $current_hook ? ‘stylesheet’ : ‘script’;
}This must be ‘style’, see https://w3c.github.io/preload/#server-push-http-2
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘` must have a valid `as` value’ is closed to new replies.