Bug 219471 - window.addEventListener DOMContentLoaded is not triggered
Summary: window.addEventListener DOMContentLoaded is not triggered
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:37 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:37:32 PST
No DOMContentLoaded got from JS event listener as below:

window.addEventListener("DOMContentLoaded", (event) => {
    console.log("DOMContentLoaded");
});

https://developer.mozilla.org/en-US/docs/Web/API/Window/DOMContentLoaded_event
Comment 1 Alexey Proskuryakov 2020-12-02 19:33:59 PST
Could you please attach a complete test case? DOMContentLoaded works in general.
Comment 2 Radar WebKit Bug Importer 2020-12-17 14:13:50 PST
<rdar://problem/72440638>