Wow, thanks everyone! Didn’t expect so many replies.
Tried the `load` event trick, and it worked for my same-origin case—turns out I was just being impatient with the timing.
For cross-origin, guess I’ll have to rethink my approach. `postMessage` seems like the way to go, even if it’s a bit more work.
Appreciate the code snippets and links! Saved me another night of googling.
Tried the `load` event trick, and it worked for my same-origin case—turns out I was just being impatient with the timing.
For cross-origin, guess I’ll have to rethink my approach. `postMessage` seems like the way to go, even if it’s a bit more work.
Appreciate the code snippets and links! Saved me another night of googling.
