liqingbokonner
V2EX  ›  Vue.js

vue-cli 构建的项目,首屏加载为什么慢?

  •  
  •   liqingbokonner · Oct 28, 2017 · 3838 views
    This topic created in 3124 days ago, the information mentioned may be changed or developed.
    vue-cli 构建的项目,首屏加载为什么慢?(作者自己在知乎说的,他的解决方法是 ssr )

    是因为多了 模块解析 + virtual Dom 解析的步骤吗?

    相对于传统页面 vue-cli 构建的中型大小的项目首屏加载速度会慢多少?
    vincentxu
        1
    vincentxu  
       Oct 28, 2017
    http://webpack.github.io/docs/api-in-modules.html#require-ensure 可以看看这个,异步加载其他没用到的模块
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2334 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 15:53 · PVG 23:53 · LAX 08:53 · JFK 11:53
    ♥ Do have faith in what you're doing.