VasSonic is a lightweight and high-performance Hybrid framework developed by tencent VAS team, which is intended to speed up the first screen of websites working on Android and iOS platform. Not only does VasSonic supports the static or dynamic websites which are rendered by server, but it is also compatible with web offline resource perfectly.
VasSonic uses custom url connection instead of original network connection to request the index html, so it can request resource in advance or parallel to avoid waiting for the view initialization. In this parallel case, VasSonic can read and render partial data by WebKit or Blink kernel without spending too much time waiting for the end of data stream.
VasSonic can cache html cleverly according to VasSonic Specification obeyed by client and server. VasSonic Specification specify template and data by inserting different comment anchor, templates are bigger parts of html which stay the same or changed rarely , in contradiction data, which is the smaller and constantly change part of html. According to this, VasSonic request less data by incremental updating templates and data, the websites are faster and feel more like native application. In conclusion, VasSonic effectively enhance the user experience and increase click rate, retention rate and other indicators.
Sonic is called for short in project.
Pic 1: Before Using VasSonic | Pic 2: After Using VasSonic |
---|---|
Any problem?
Learn more from the following sample. Android sample iOS sample Java sample Node.js sample PHP sample React sample
Read the following source code Android source code iOS source code Java source code Node.js source code PHP source code React source code
Read the wiki for help.
Contact us or scan QR code for help.
For more information about contributing issues or pull requests, see our VasSonic Contributing Guide.
VasSonic is under the BSD license. See the LICENSE file for details.
If you are interested in VasSonic, don't forget to STAR it.
VasSonic's mission is MAKING WEB MUCH BETTER!
Thank you for reading ~
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型