Oh hmm, I didn't notice the one second timeout part of your code until you mentioned this.
Reading the spec, it definitely seems like this isn't a requirement if the initial content is below an unspecified size. While I understand that you and a lot of folks would probably just like to have this politeness built-in, it isn't clear to me that's the case for everyone (or a large majority). @mlgore : I'm curious in your case, would you want this for all ads?
I think I'd rank the most "ideal" cases like:
- having an ad builder system that keeps track of sizes all along the way and lets you specify what's needed for initial content vs. host initiated subload. This adds a lot of tool complexity though.
- Automatically using a timeout if the content is above a certain size
- Having an option to use this or not on a per-ad basis, possibly with some user default setting
(there could even be combinations of these)
For now though, maybe the best route forward is to make an "IAB Polite" export script, that basically works as you made it. Shall I take a stab at this?