Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not difference beetwen use Lazy prefix and dont use it #210

Closed
njtnestor opened this issue Jun 23, 2021 · 4 comments
Closed

Not difference beetwen use Lazy prefix and dont use it #210

njtnestor opened this issue Jun 23, 2021 · 4 comments

Comments

@njtnestor
Copy link

njtnestor commented Jun 23, 2021

I dont feel the diference beetwen use Lazy prefix in component name and dont use it.

In this codepen when I delete the Lazy prefix and inspect the network I feel the same result:
A mountains-list.js is generated in both cases

Can someone explain me, what is the difference?

Copy link
Member

atinux commented Jun 24, 2021

You can see the difference when building the app and running nuxt start

@njtnestor
Copy link
Author

You can see the difference when building the app and running nuxt start

Oh nice! I can see it now.

I would like to know why the difference cant be appreciated in dev mode.

Copy link
Member

atinux commented Jun 24, 2021

It will actually slow the build down since it uses a Webpack loader to smartly import the components in dev.

@njtnestor
Copy link
Author

ok thanks for the clarification

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants