Today I learned: if you start a load navigation in a subframe from script before your page is done loading, Chrome and Safari will fire your page's onload before that subframe load completes.
-
-
As in, we have a situation where we start a subresource load in a page before that page's load event has fired, and the load event fires before the subresource is done loading.
-
Interesting. Feel free to file a bug in the Chromium tracker and send me the bug id, I'll make sure it gets triaged appropriately.
- 1 more reply
New conversation -
-
-
yeah, the blog post explains it (I hope). The parent does in fact wait for the iframe’s onload, which fires immediately (before the src is added), after that the parent will not wait for further onload events.
-
The parent is supposed to wait for fetches, not for onload events, per spec. Edge and Firefox get this right.
- 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.