version-polling
version-polling copied to clipboard
new feature:能否对事件触发的更新添加节流?
当前使用场景是对路由事件进行监听,当页面快速切换时,会重复的请求 index.html,希望能对事件触发更新添加节流操作(比如节流60s)来节省流量
- 可以在
dispatchEvent代码处自行添加节流处理。 - 可以加个
silentPageVisibility: true,禁用页面切换检测。