Why Firefox fires load event much earlier than Chrome
https://livedemo.customers.na.apm.ibmserviceengage.com/APMLiveDemo/guide.html?task=3&se=false
I was testing the above website and found that the page load time on Firefox is much smaller than on Chrome.
On Firefox(devtools console):
>> performance.timing.loadEventEnd-performance.timing.navigationStart
>> 4914
On Chrome:
>> performance.timing.loadEventEnd-performance.timing.navigationStart
>> 15153
Looks like Firefox does not wait the embedded iframe to be fully loaded and fires the load event. If this is the case, why google chrome behaves so differently?
Is this an inherent difference between the browser engines? What can be the root causes?
链接地址: http://www.djcxy.com/p/96286.html上一篇: 这两者有什么区别?