Skip to content

Preload css request instead of prefetch #260

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

Closed
ghisleouf opened this issue Apr 28, 2020 · 2 comments · Fixed by #300
Closed

Preload css request instead of prefetch #260

ghisleouf opened this issue Apr 28, 2020 · 2 comments · Fixed by #300
Labels

Comments

@ghisleouf
Copy link

Hi there,

first of all, thanks for the plugin, it's great !

I've just integrated it to a VueJS ( and vuestorefront solution) and currently, I run a Lighthouse performance test ( like in this issue : #179).

Everything is extracted properly but, for one of the dynamically imported, it's called as prefetched :
<link rel="prefetch" href="/dist/css/1.a8d3ad22.chunk.css">

This is the first component of the page, a slider ... and Lighthouse asks me to preload it instead of prefetch it.

I have 2 questions :

  • how is the mitigation between prefetching and preloading done ?
  • Is there a way to tweak it by component ? or a way to handle this issue ?

Thanks a lot for your help !

Best

@ScriptedAlchemy
Copy link
Collaborator

Open a pr and make the change. I’ll merge it. Preload is better to use.

@ScriptedAlchemy
Copy link
Collaborator

🎉 This issue has been resolved in version 4.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants