Skip to content

Added lazy loading to router#6

Open
crnogaj wants to merge 428 commits intoourresearch:masterfrom
crnogaj:master
Open

Added lazy loading to router#6
crnogaj wants to merge 428 commits intoourresearch:masterfrom
crnogaj:master

Conversation

@crnogaj
Copy link
Copy Markdown

@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.

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.

3 participants