Currently under the
render
section of nuxt.config.js
there is an option resourceHints
(boolean), which enabled (default) or disabled (by setting to false
) which, based on the documentation:
Adds prefetch and preload links for faster initial page load time.
I have a rather large list of routes, and some routes that are only used by users that have certain roles/privileges.
It would be nice if:
prefetch
could be disabled, while still having preload
(for things like the common chunks) enabled.scrollToTop
is flagged), to enable/disble preload
or, prefetch
. for that particular page component99% of the my users cannot access administrative
pages, so it is kind of a waste of b/w to pre-fetch those pages which will never be loaded by those users, without having to disable site-wide pre-fetching (which affects 100% of the users)
An other option would be able to group pre-fetches by a user speified parameter... say if someone accesses /admin (and isn't re-directed/blocked by middleware), then all the child routes of `/admin would be listed/added in the head as prefetch links.
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This feature request is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1652">#c1652</a>)</em></sub></div>