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

Correct preload of fonts/styles #2559

Closed
zverexe opened this issue Apr 27, 2020 · 2 comments
Closed

Correct preload of fonts/styles #2559

zverexe opened this issue Apr 27, 2020 · 2 comments
Labels
support Questions or unspecific problems

Comments

@zverexe
Copy link

zverexe commented Apr 27, 2020

I have such imports in my /packs/client.js

import (/* webpackPreload: true */ 'bootstrap/dist/css/bootstrap.css');
import (/* webpackPreload: true */ '@fortawesome/fontawesome-pro/css/all.css');

I added webpackPreload: true as was advised here #1874 (comment) but it doesn't add any preload attribute and I still see warnings from Lighthouse

@jakeNiemiec jakeNiemiec added the support Questions or unspecific problems label Apr 30, 2020
@jakeNiemiec
Copy link
Member

it doesn't add any preload attribute and I still see warnings from Lighthouse

What kind of warnings?

@guillaumebriday
Copy link
Member

@zverexe Could you please provide your Lighthouse report please?

Do you see the preload tag in your <head>?

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

No branches or pull requests

3 participants