华为P20微信小程序中内嵌h5,无法懒加载
devlee opened this issue · comments
devlee commented
华为P20微信小程序中内嵌h5,无法懒加载,但是在微信浏览器里是可以懒加载的
Booker Zhao commented
检查下是否支持 IntersectionObserver API
devlee commented
使用了IntersectionObserver的polyfill,不知道是不是因为原生不支持,是polyfill的问题
Booker Zhao commented
可以先看下小程序中内嵌h5本身支不支持IntersectionObserver,再定位是不是polyfilll的问题
devlee commented
API原生支持,微信浏览器里entries[0].intersectionRatio为1,小程序里内嵌h5,entries[0].intersectionRatio为0......
devlee commented
已反馈微信官方,所以关了