Skip to content
New issue

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

<link rel="preload" with "as" doesn't work printing The resource https://qm3w7j.csb.app/styles.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. #8610

Open
3 tasks done
danieldanielecki opened this issue Sep 12, 2024 · 0 comments

Comments

@danieldanielecki
Copy link

🐛 bug report

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project
    adheres to.
  • I have searched the issue tracker for an issue that matches the one I want
    to file, without success.

Description of the problem

It looks like <link rel="preload" with as="style" and as="script" doesn't work.

How has this issue affected you? What are you trying to accomplish?

Having a minimal code example with <link rel="preload" href="styles.css" as="style" /> & <link rel="preload" href="script.js" as="script" />.

To Reproduce

https://codesandbox.io/p/sandbox/104-html-performance-optimization-techniques-qm3w7j / https://qm3w7j.csb.app and check the console, which will print The resource https://qm3w7j.csb.app/styles.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.

Link to sandbox: link (optional)

Your Environment

Software Name/Version
Сodesandbox latest
Browser any
Operating System most likely any
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant