kb-coder / lazydemo Goto Github PK
View Code? Open in Web Editor NEWhttps://github.com/kb-coder/lazydemo.git
https://github.com/kb-coder/lazydemo.git
Hi.
I have lazy loaded all my chunks in the router, but i still find they are loaded when i click the network tab "ALL".. However when i go to "xhr" i do see the routes loaded when i navigate to that route.. It was confusing at first, but i found out that most browsers will just prefetch the content anyway and will increase the download time and hurt performance even though we have already specified to lazy load the routes. The solution to this is in vue config to : config.plugins.delete('prefetch').
However my next problem is how do i disable vuex from loading on the home page if my home page is not using any global state? Im Why load the store if its not being used on the index route.
also, in vuex, i have lots of third party packages (already trimmed most of them) but some of them like aws-sdk are quite large, and this seems to get loaded everywhere even when not being used.
How do i lazy load modules within modules? most of these are located in vuex store.
I wish vue did have a good way to deal with this.
thanks
Rishi
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.