We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b6b2968 + 1d1bf28 commit b798a4cCopy full SHA for b798a4c
1 file changed
packages/qwik/src/core/shared/qrl/qrl-class.ts
@@ -314,12 +314,9 @@ export const createQRL = <TYPE>(
314
);
315
}
316
317
- if (isBrowser && symbol) {
318
- /**
319
- * Preloading the symbol instead of the chunk allows us to get probabilities for the bundle
320
- * based on its contents.
321
- */
322
- preload(symbol, 0.8);
+ if (isBrowser && chunk) {
+ /** Preloading the chunk when we create the QRL. */
+ preload(chunk, 0.8);
323
324
return qrl;
325
};
0 commit comments