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
Preloading of pages, fonts, styles, images does not work correctly
Installed the latest Nuxt.
Added a few pages. test-no-preload* - there are no links to these pages anywhere. two-page.vue - we can go to this page from the main one.
Added styles to each page with the loading of woff and woff2 fonts.
After the project is built and launched, Nuxt preloads all data and pages.
As you can see, all resources are added to the preload <link rel="prefetch" ...>, all pages, even those that are not used anywhere.
Should work like on https://nuxt-prefetch.surge.sh/
Only those pages should be preloaded, links to which are visible in the browser and after the current page is fully loaded.
Also, fonts should not be preloaded from all pages in advance.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Aleksandr-om
changed the title
nuxt preloads all pages, styles, fonts, svg. Adds everything in head to rel="prefetch"
Nuxt preloads all pages, styles, fonts, svg. Adds everything in head to rel="prefetch"
Jul 4, 2022
Aleksandr-om
changed the title
Nuxt preloads all pages, styles, fonts, svg. Adds everything in head to rel="prefetch"
Nuxt 3 preloads all pages, styles, fonts, svg. Adds everything in head to rel="prefetch"
Jul 4, 2022
Environment
Ubuntu
v16.15.1
3.0.0-rc.4
/v3.0.0-rc.4-27611167.a41644e
yarn@1.22.19
vite
target, nitro, runtimeConfig, css, buildDir, modules, intlify, typescript, build
Reproduction
https://github.com/Aleksandr-om/nuxt-3-issue/tree/main/nuxt-app
Describe the bug
Preloading of pages, fonts, styles, images does not work correctly
test-no-preload*
- there are no links to these pages anywhere.two-page.vue
- we can go to this page from the main one.After the project is built and launched, Nuxt preloads all data and pages.
As you can see, all resources are added to the preload
<link rel="prefetch" ...>
, all pages, even those that are not used anywhere.Should work like on https://nuxt-prefetch.surge.sh/
Only those pages should be preloaded, links to which are visible in the browser and after the current page is fully loaded.
Also, fonts should not be preloaded from all pages in advance.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: