This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script async="async" src="https://www.googletagservices.com/tag/js/gpt.js"></script> | |
<script> | |
// This is a very basic example of Lazyloading DFP ads with an SRA roadblock. | |
// The example uses ES2016 javascript syntax and relies on | |
// IntersectionObservers. Normally in production this would be transpiled | |
// with babel and polyfilled for support. It also relies on DFP maintaining a | |
// changeCorrelator for all ad requests. Historically this correlator has | |
// timed out after 30 seconds, which is why this example relies on a js timer |