I'm looking for more information regarding detection of <link>
elements being fully loaded and parsed by modern browsers.
I've done a decent amount of research, but everything I dig up is pretty antiquated.
For instance, I found this SO post, How to determine if CSS has been loaded?. It references a blog posts, found here, which references various bug reports for Webkit, Chromium, and Mozilla. However, all those bugs have since been resolved and marked as fixed. (Ref: here, here, and here)
Looking at MDN's documentation on link, https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#Stylesheet_load_events, their documentation implies that using onload
is sufficient, but they don't provide any additional comments on what sort of support it has for older browsers.
My question is simple:
If I am only targeting evergreen browsers -- is using the onload
event handler sufficient for detecting whether a CSS file has been loaded? If not, please provide documentation on what patches are required for specific browsers/browser versions.