Static GitHub Issues

[3165] Change all NUXT scripts loading mode from preload to prefetch

prev: [edge] Extract CSS into one single file does not work
next: Vue is not defined

What problem does this feature solve?

I want my page opening much more faster. Currently all scripts in head section loaded with PREFETCH flag. This blocks webpage opening until all scripts will be downloaded. In my case (with vuetify) it about 200Kb gzipped. But why do I need these JS scripts to see my page? I need them to get interactive page. And it can be much latter then viewing page. Please try to run LightHouse - it will tell the same. Do not block page opening with java scripts. nuxt.png

What does the proposed changes look like?

manifest and javascript files in head section without PREFETCH flag webpage opens faster!

<!--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/c6813">#c6813</a>)</em></sub></div>