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

Added lazy loading to router #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

crnogaj
Copy link

@crnogaj crnogaj commented Oct 25, 2024

Since you have components and views with lots of hardcoded data (e.g. Testimonials.vue) lazy loading will load it only on it's route instead of having it all in one bundle.

Here is how bundle looks without lazy loading
without_lazy_loading

And this is with lazy loading
with_lazy_loading

We can see that app part of bundle is now chunked which improves loading times.

While I was in router I noticed there were some unused imports, inconsistent formatting, inconsistent import syntax and quotes usage so I improved that also.

except for home route which loads immediately so we want it to be available in bundle
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

Successfully merging this pull request may close these issues.

1 participant