You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some module is large, but not compatible with SSR. So I can only import it dynamically in an onMount or if (browser) block. But I still want them to be preloaded during that page got preloaded by preloadCode or data-sveltekit-preload-code.
An example is monaco-editor.
Describe the proposed solution
Add a hook like beforePreload in $app/navigation.
Alternatives considered
For now I can only write them in on:mouseover besides data-sveltekit-preload-code or write them after preloadCode
Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Describe the problem
Some module is large, but not compatible with SSR. So I can only import it dynamically in an
onMount
orif (browser)
block. But I still want them to be preloaded during that page gotpreloaded
bypreloadCode
ordata-sveltekit-preload-code
.An example is
monaco-editor
.Describe the proposed solution
Add a hook like
beforePreload
in$app/navigation
.Alternatives considered
For now I can only write them in
on:mouseover
besidesdata-sveltekit-preload-code
or write them afterpreloadCode
Importance
nice to have
Additional Information
No response
The text was updated successfully, but these errors were encountered: