We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
as
See here: https://www.smashingmagazine.com/2016/02/preload-what-is-it-good-for/#loading-of-late-discovered-resources If the as attribute is omitted from the preload, it has lower priority or isn't even used at all (Chrome shows: was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.
was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.
The text was updated successfully, but these errors were encountered:
This seems to work for me locally. The plugin is choosing the attribute based on the extension:
resource-hints-webpack-plugin/index.js
Lines 7 to 17 in bbac509
And it's correctly set in the fixture (only for preload though - prefetch doesn't have an as attribute).
preload
resource-hints-webpack-plugin/spec/fixtures/expected.html
Line 6 in bbac509
Sorry, something went wrong.
No branches or pull requests
See here: https://www.smashingmagazine.com/2016/02/preload-what-is-it-good-for/#loading-of-late-discovered-resources
If the
as
attribute is omitted from the preload, it has lower priority or isn't even used at all (Chrome shows:was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it wasn't preloaded for nothing.
The text was updated successfully, but these errors were encountered: