Replies: 2 comments 2 replies
-
I'm curious about this as well. We're getting a lot of errors in our app like:
I think these are due to network errors causing preloads to randomly fail, but I can't figure out how to simulate them to make sure I understand the effect they're having on the user. There also doesn't seem to be a way for me to inject a thing that might retry them. I think ultimately I'd like to turn off preloading, but if I could add retries somehow or else feel confident that this won't affect the user experience then it would be ok. |
Beta Was this translation helpful? Give feedback.
-
I know it's late but since I landed here when I was looking for an answer, this might help someone else. Here's how we ended up solving it:
|
Beta Was this translation helpful? Give feedback.
-
I'm using Vite dynamic imports. When building, Vite has Rollup split them into chunks. So far so good. But: All of these chunks get added to index.html as module-preload. And indeed, irregardless of the run-time dynamic import resolution, all of the chunks do get preloaded. Is there a way to have these dynamic imports lazy-loaded instead of pre-loaded?
Beta Was this translation helpful? Give feedback.
All reactions