Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

What's an event I can listen to, to make sure my styles have been loaded and applied?

$
0
0

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().


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>