mipengine / mip2

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

【项目-async 实验推进】小说翻几页后出现报错cannot read property “appendchild” of null #516

Closed gaoshan003 closed 5 years ago

gaoshan003 commented 5 years ago

BUG 描述 https://psfehttps3.baidu.com:8443/s?word=延禧攻略 小说翻几页后出现报错cannot read property “appendchild” of null image

复现步骤 重新复现 Bug 的步骤

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

期望结果 清晰和准确的描述你期望的结果

截图 如果合适,添加问题相关的截图

环境及版本信息:

其他信息 其他补充信息

zoumiaojiang commented 5 years ago

这是一个 iOS + iframe 环境下才会触发的 bug,初步排查原因是因为 async 加载 mip.js 之后,一开始执行viewport 模块引入的 rect 模块中的全局定义的 document.body 没有 ready,导致报错。