I have a parent
window from where I grab all stylesheet
links from inside the head
. I then cloneNode
those styles, and finally, appendChild
to the iframe
's head.
When would be the event that I could listen to inside my iframe, that'll let me know that all those styles have been loaded and applied?
I control everything inside this application, so, anything goes. I've tried load
and DOMContentLoaded
, but the thing is - the iframe's already loaded. Am looking for a way to await appendChild
and await loadStyle()
.