Tencent / VasSonic

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.
Other
11.8k stars 1.61k forks source link

集成sonic前后加载连接耗时基本一致,甚至还没有原生的快 #263

Closed lizuojing closed 5 years ago

lizuojing commented 5 years ago

该问题的重现步骤是什么?

  1. 按照demo集成sonic,同时也尝试了在sample程序上直接替换连接
  2. 加载https://www.maodou.com
  3. 在pagestart和pagefinish打印时间。

通过时间比较:发现时间消耗利用缓存和不用缓存加载时间差不多,都需要2s多,甚至还没有原生的快,给人的感觉像是sonic并没有起到作用。

你正在使用产品的3.0版本,在android操作系统上。

vasdeveloper commented 5 years ago

看了下这个页面是非直出,也就是本地缓存的只是一个基本框架,通过sonic缓存后还是要新开网络协议去拉取子资源,除非前端也直接集成Sonic