PageSourceSearch

https://publicholidays.sg/wp-content/themes/bb-phg/js/lazy-load-ads.js?ver=7.1

js publicholidays.sg collected 2026-10-02 18:50:58 UTC 986 bytes, 31 lines download raw bytes

1var phgLazyLoadAdsMonitor = function() {
2	for( var i = 0; i < phg_lazy_load_ads.length; i++ ) {
3		var ad = phg_lazy_load_ads[ i ];
4
5		if( ! ad.loaded ) {
6			var container = document.getElementById( ad.id );
7
8			if( container && lazyElementShouldLoad( container, ad.lazyness ) ) {
9				phg_lazy_load_ads[ i ].loaded = true;
10
11				console.info( 'Loading add ' + ad.id );
12
13				if( container && typeof ad.html !== 'undefined' && ad.html != null) {
14					container.innerHTML = ad.html;
15
16					(adsbygoogle = window.adsbygoogle || []).push({});
17					(deployads = window.deployads || []).push({});
18				} else if( container && typeof ad.script !== 'undefined' ) {
19					eval(ad.script);
20
21					(adsbygoogle = window.adsbygoogle || []).push({});
22					(deployads = window.deployads || []).push({});
23				}
24			}
25		}
26	}
27};
28
29window.addEventListener( 'load', 	phgLazyLoadAdsMonitor );
30window.addEventListener( 'resize', 	phgLazyLoadAdsMonitor );
31window.addEventListener( 'scroll', 	phgLazyLoadAdsMonitor );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.