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

Preload doesn’t make sense #6

Closed
pepelsbey opened this issue Dec 13, 2020 · 1 comment
Closed

Preload doesn’t make sense #6

pepelsbey opened this issue Dec 13, 2020 · 1 comment

Comments

@pepelsbey
Copy link

pepelsbey commented Dec 13, 2020

    <link
      rel="preload"
      href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap"
      as="style"
    />
    <link
      href="https://fonts.googleapis.com/css2?family=Montserrat&display=swap"
      rel="stylesheet"
    />

    <link rel="preload" href="./public/css/style.css" as="style" />
    <link rel="stylesheet" href="./public/css/style.css" />

Preloading a CSS file right before including it via link element doesn’t make any sense: browsers pick up CSS files and load them with the highest priority anyway.

@pepelsbey
Copy link
Author

Thank you for the detailed explanation!

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

2 participants