We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77056ce commit 3e51c09Copy full SHA for 3e51c09
packages/qwik/src/core/preloader/queue.ts
@@ -86,7 +86,8 @@ export const trigger = () => {
86
Math.max(1, config[maxSimultaneousPreloadsStr] * probability)
87
: // While the graph is not available, we limit to 2 preloads
88
2;
89
- if (preloadCount < allowedPreloads) {
+ // When we're 100% sure, everything needs to be queued
90
+ if (probability === 1 || preloadCount < allowedPreloads) {
91
queue.shift();
92
preloadOne(bundle);
93
} else {
0 commit comments