-
Notifications
You must be signed in to change notification settings - Fork 85
Lighthouse: Preload key requests #179
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
Comments
Do you use SSR? |
Yes i use SSR. everything latest |
Okay, check out webpack flush chunks and pretty much flush out the files, then add a preload tag to them and insert it as a string in SSR.
|
Ok I thought there might be some other way, that this would be automatically provided for the right candidates to flush chunks. |
I must be doing something wrong, maybe my issue is similar to #125 but I don't know what was the solution there. So I am checking the output of styles, stylesheets from flush chunks and the whole output looks like required and not a candidate for preload. Later in the page load there is additional scripts and styles links loaded the ones visible in the screenshot that I posted. Those styles are imported (required) in a component that is imported with universal import. Example:
Is there a way to avoid this issue altogether? |
I guess it should not be be aliased path for universal import dependency. |
@primozs Can you explain what you mean here? I've also run into this issue and am unsure about how to resolve it. It's exactly the scenario you've described where I have a page and it's chunks are in the flushChunks output, but it lazy loads something else and that isn't in there. |
@seeruk Hi, I wish I could help but I really dont remember any more. |
I hope its not too general question. Maybe somebody here knows how to solve css modules extract chunks with preload hint to the browser.
The text was updated successfully, but these errors were encountered: