Handling Post-Iframe Load Scripts
-
We have some scripts that run on the load of certain iframes to perform various tasks (mainly iframe resizing). Right now they initialize with the jQuery ready function or the standard DOMContentLoaded event. Without embed privacy, the iframes are loaded when the page loads and the scripts trigger to resize as expected.
However, with Embed Privacy, the iframes don’t actually exist unless the user has previously approved the content or until they click to approve the content on the page. When they click to approve content, that then loads the iframe, but because the page is already ready/loaded, it doesn’t run the other scripts again (like iframe resizing).
I may be overlooking something obvious, but do you have any suggestions on how to deal with that? My initial thought was that if Embed Privacy has some kind of event for “content approved/loaded” I could add that to our scripts and re-call the iframe loading scripts when the iframe is actually loaded.
Thanks for your help!
You must be logged in to reply to this topic.