Bug 219469 - window load events will be triggered multiple times when a site is loading
Summary: window load events will be triggered multiple times when a site is loading
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: Safari 14
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-12-02 18:12 PST by xiehaiyan_xhy
Modified: 2020-12-17 14:13 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xiehaiyan_xhy 2020-12-02 18:12:52 PST
Repro:
On some websites such as msn news, fox news websites, window load events will be triggered multiple times.
This won't happen on Android webview or other browsers

sample website: https://www.foxnews.com/politics/trump-says-he-will-leave-office-electoral-college-votes-biden

Code
window.addEventListener("load", (event) => {
        console.log("load event triggered");
        
    });
Comment 1 Radar WebKit Bug Importer 2020-12-17 14:13:39 PST
<rdar://problem/72440629>