mipengine / mip2

MIP (移动网页加速器)通过优化网页JS、控制资源加载顺序,达到加速网页的效果。
https://www.mipengine.org/
MIT License
184 stars 49 forks source link

async 引入 mip 核心导致 DOMContentLoaded 事件触发机制异常,导致统计参数出错 #513

Closed zoumiaojiang closed 5 years ago

zoumiaojiang commented 5 years ago

BUG 描述 在 async 引入 mip 核心的情况下,performance 收集的性能参数缺少 DOMContentLoaded 指标。 因为 DOMContentLoaded 事件没有被 mip 核心触发。

https://stackoverflow.com/questions/9237044/async-loaded-scripts-with-domcontentloaded-or-load-event-handlers-not-being-call

期望结果 async 引入机制下,DOMContentedLoaded 机制能正常运行,性能指标统计能够正常