RESOLVED INVALID 193497
<link> element load event never fired more than once
https://bugs.webkit.org/show_bug.cgi?id=193497
Summary <link> element load event never fired more than once
Dominic Farolino
Reported 2019-01-16 10:29:52 PST
Consider the following test: https://link-double-load.glitch.me/, which has a link rel=stylesheet. A script adds an onload event handler to the <link>, which is a function that indicates the number of times said handler is called. The script then sets the `href` attribute (to trigger a load) on the element twice. Safari and Chrome indicate the handler is called once, while Firefox indicates that the handler is called twice, which is the expected result. I have not written WPTs for this, just have a POC in the form of the glitch page. (See https://crbug.com/922618)
Attachments
Brent Fulgham
Comment 1 2022-07-01 16:01:54 PDT
Safari, Chrome, and Firefox all load once. This seems to be the proper behavior.
Note You need to log in before you can comment on or make changes to this bug.