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

对于webview的差异化刷新SonicJSExport的getDiffData调用的困惑,逻辑上面webview的js貌似没有正真的进行动态替换变化的节点 #297

Closed jolly-wu closed 5 years ago

jolly-wu commented 5 years ago

What steps will reproduce the problem? 该问题的重现步骤是什么?

  1. 在sonic的缓存数据的差异化加载的过程中,是直接加载webview的最终htmlData。没有看到具体加载template,然后通过js来刷新变化的dom节点。

What is the expected output? What do you see instead? 你期待的结果是什么?实际看到的又是什么? 期望看到的是sonic有执行具体加载template,然后通过js来刷新变化的dom节点。

What version of the product are you using? On what operating system? 你正在使用产品的哪个版本?在什么操作系统上?

Please provide any additional information below. 如果有的话,请在下面提供更多信息。

vasdeveloper commented 5 years ago

前端是否没有接入sonic

sonic-ios-dev commented 5 years ago

template不会用来加载,是用来和动态更新的Data数据进行合并产生新的缓存html的作用,或者模版已经和页面最新模版产生差异,则会从最新的html页面创建新的模版;getDiffData 是页面调用终端获取当次差异数据的时候使用的。