Answer the question
In order to leave comments, you need to log in
How to solve the problem with the link tag set to preload and as, why does the chrome inspector give errors?
I have an HTML document with the following content:
<head>
<link rel="preload" href="preload.css" as="style" type="text/css" crossorigin="anonymous">
<link rel="preload" href="preload.js" as="script" type="text/javascript" crossorigin="anonymous">
<link rel="preload" href="fonts/font.woff2" as="font" type="font/woff2" crossorigin="anonymous">
</head>
example.com/:1 The resource example.com/preload.js was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
example.com/:1 The resource example.com/preload.css was preloaded using link preload but not used within a few seconds from the window's load event. Please make sure it has an appropriate `as` value and it is preloaded intentionally.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question