New IAB Rule | Initial- and subload

I’m currently waiting on an account verification email for the validator.

Are you using an Export Script or the “Inline data file+loader” Advanced Export option? If not, the easiest solution would probably be to do something like:


  1. Paste this code into the head of your HTML document:
<script>

var hypeScriptSrc = "REPLACE_WITH_SCRIPT_SRC";

document.addEventListener("DOMContentLoaded", function(event) {
	window.setTimeout(function () {
		var headElement = document.getElementsByTagName('head')[0];
		var scriptElement = document.createElement('script');
		scriptElement.type = 'text/javascript';
		scriptElement.src = hypeScriptSrc;
		headElement.appendChild(scriptElement);
	}, 1000 /* 1 second delay */);

});
</script>
  1. Find the line that looks like:
<script type="text/javascript" charset="utf-8" src="delay.hyperesources/delay_hype_generated_script.js?82237"></script>
  1. Copy the full src argument of this tag and paste it into the REPLACE_WITH_SCRIPT_SRC above.
    (In this case it would be delay.hyperesources/delay_hype_generated_script.js?82237)

  2. Remove or comment out the script tag found in step #2.

This will fully delay the entirety of the ad loading until later.


However, if you’re using an export script, the initial loader and hype runtime will be loaded immediately, and the runtime doesn’t delay in loading external resources. There might need to be changes in the resource loading to support this delay.

1 Like