Replies: 5 comments 4 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.
-
|
We are facing the same issue, For Few CSS - We get errors like Were you able to fix the problem in your case / or identify the cause of this ? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
My issues is slightly un-related but this thread has some attention hence asking it here. Most of the times we are getting preloadError load failed for which vite suggests doing a fresh reload as the server may be returned the old bundle instead from the lastest deployment one. That is bad as the site would load twice. Earlier when we didnt add that event listener still our website would load twice. Not sure why its happening. I really appreciate any suggestions around this |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
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