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
When using Vue to create a static site (like via nuxt generate) every code split asset is getting prefetched. This is an awesome feature if we were thinking about offline mode, but when you're trying to create a site with triple digit routes and little concern for offline browsing (i.e. a marketing site) this is creating some pretty beefy code overhead.
It would be great if there was a way to get a shouldPrefetch in vue-server-renderer, similar to shouldPreload.
What does the proposed API look like?
Exactly like shouldPreload(), but for prefetching would be great.
The text was updated successfully, but these errors were encountered:
I agree with @laugharn prefetch resources should be controllable.
In my case, I would like to avoid some big scripts (like PDF.js + PDF.js worker) to be downloaded too early.
What problem does this feature solve?
When using Vue to create a static site (like via
nuxt generate
) every code split asset is getting prefetched. This is an awesome feature if we were thinking about offline mode, but when you're trying to create a site with triple digit routes and little concern for offline browsing (i.e. a marketing site) this is creating some pretty beefy code overhead.It would be great if there was a way to get a shouldPrefetch in vue-server-renderer, similar to shouldPreload.
What does the proposed API look like?
Exactly like shouldPreload(), but for prefetching would be great.
The text was updated successfully, but these errors were encountered: