How to move an Iframe provided by an Ad provider to a different location on the page?
Posted on 2014-01-30
On my website I have ads that are provided by a third party. However these ads have scripts in them that do a document.write. I was trying to follow best practices in loading ads last on the page for performance reasons, so the ads are showing up at the bottom of my source, because of the document.write. When I try to move the wrapper that contains the ad to the correct spot on the page, the ad is disappearing. It looks like the ad has an IFrame within it so all the body and html of the iframe are disappearing. Does anyone know how to move this without losing the data?