Code Monkey home page Code Monkey logo

lazydemo's People

Contributors

kb-coder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lazydemo's Issues

Hi. Great Talk on Performance, Question about vuex and modules

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.