-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Different link preloads for static rendering #4158
Comments
I don't think this makes sense. How do you have multiple SPA fallbacks with static files? |
I don't, there is just one fallback( |
What link preloads are we talking about? |
|
Right, but which modules are we preloading? We can't know which modules a given page depends on without server-rendering them, but the whole reason to use SPA+fallback is that you can't server-render those pages. |
Yeah, but I'm not specifically talking about fallback page( This is related to issue #4157 I also created where I'm requesting to prerender even the parameterized routes when Does that makes sense? |
@Rich-Harris I could maybe try to do PR for this, but I don't know much about Svelte/Vite compilation |
Note to self: an import * as module from '../entries/pages/about.svelte.js';
export { module };
export const entry = 'pages/about.svelte-d3051e16.js';
export const js = ["pages/about.svelte-d3051e16.js","chunks/index-2e6eec55.js"];
export const css = ["assets/pages/about.svelte-bf4528fa.css"]; If it didn't eagerly import the So this is possible, albeit not a top priority |
Describe the bug
Currently
adapter-static
renders same HTML output(.html files) for allspa: true
/fallback
mode routes.What should happen is different link preloads for every HTML page(file) so loading happens quicker.
Kinda related: #4157
Reproduction
.
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response
The text was updated successfully, but these errors were encountered: