I'm loading HTML via an iframe on a site. The HTML being loaded is supposed to wait to load certain content only after the parent document has finished loading (document.readyState == 'interactive' || document.readyState == 'complete'
). The problem is that the HTML content is manually loaded into the iframe well after the parent document has finished loading.
Is there any way to spoof the readyState of the parent document in order to verify the loaded HTML content isn't rendering prematurely?