Giter Club home page Giter Club logo

Comments (1)

tyaqing avatar tyaqing commented on August 16, 2024

1.没有违背

在做脚手架之前我是把[提升HTML5的性能体验系列]全部看过的,这个脚手架几乎按照他们的建议写出来的.
比如说:

现在太多开发者在研究模式、框架,让页面渲染要经历二次、甚至四五次重绘才能完成。在短短几百毫秒的动画期间,这么干要不让页面卡、要不让渲染慢。

假如我们直接用umd方式引入vue,也就是<script src="vue.js"></script>.

那么就会造成二次渲染 html->virtualDOM. 注意这里处理了2次
但是使用webpack 直接出来的就是virtualDOM.这个是性能的提升.

他这段话主要是说追求极致就不要使用太多的库比如jquery,mui.

2.单页面的缺点

如果单页面能解决问题,这个脚手架我就不会做了,大家也可以直接移植vue项目.
最核心的问题就是!!!性能!!! ,
Hbuilder在建议中提过,能用原生的尽量用原生.那么webview就是原生窗口,性能和vue-router模拟窗口可不是一个量级的.
而且你要考虑有些app可是有30+个页面. 30可能会导致一个超级大的js.或许你会说按需加载.但是随着用户操作越多,js加载越多,就会越卡,甚至内存溢出.

from mogo-h5plus.

Related Issues (20)

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.