Alexander Lichter
Alexander Lichter
Hey :wave: Nuxt is prefetching the JS chunks corresponding to the page by default (when a link is in the viewport and the user has a good connection). it does...
> So Nuxt prefetches chunks of js for every link that is in the viewport, and this is by default, is that correct? Yes but only if the connection is...
> Coming from Gatsby, I decided to make a project in Nuxt, and was suprised to see all the components pre-fetched! I like the concept of only prefetching on hover...
@alexbonhomme Unfortunately integrating that function isn't as straightforward. 🙈
I think it'd be a good fit for static generation :relaxed:
@Atinux damn, thats right :see_no_evil:
Can confirm this bug (`production`). "Workaround" which only hides the problem and works for just 1st render ☹️ : ```js build: { splitChunks: { layouts: true } } ```
> after build the project,The source code contains a large number of , These are placeholders for components not rendered due to v-if but are necessary and act as placeholders
I'm not sure if it's worth the hassle implementing it as it only helps With IE < 11. People using Nuxt can always use a custom AppView (HTML file) anyway.
> > > I'm trying to include a fragment such as below ([from stackoverflow](https://stackoverflow.com/a/45931845/435563)). Is there another way to do this with vue-meta, or should I look for another solution,...