weebly statistics

Drakenstein Local Municipality

Postal: PO Box 1, PAARL, 7622 - Physical: Berg Boulevard, PAARL
Tel: 021 807 4500 - Fax: 021 872 8054 - Email: ceo@drakenstein.gov.za
OTHER IMPORTANT NUMBERS
EMERGENCY NUMBER: 021-807 4665 - HELPLINE: 021-807 4782  - FIRE BRIGADE: 021-807 4860/ 021-872 1404/2323 
WATER: 021-807 4715 - ELECTRICITY: 021-807 4660 - AMBULANCE: 10177 - HOSPITAL: 021-860 2500 - POLICE: 021-807 4000

document.addEventListener("DOMContentLoaded", function() { var adsenseLoadTriggered = false; // 1. Function to load the main AdSense SDK function loadAdSenseSDK() { if (adsenseLoadTriggered) return; var script = document.createElement("script"); script.async = true; script.src = "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4986925452700064"; script.crossOrigin = "anonymous"; document.head.appendChild(script); adsenseLoadTriggered = true; } // 2. Setup the Observer var adObserver = new IntersectionObserver(function(entries, observer) { entries.forEach(function(entry) { if (entry.isIntersecting) { // User is close to the ad! loadAdSenseSDK(); // Ensure SDK is there (adsbygoogle = window.adsbygoogle || []).push({}); // Trigger this specific ad observer.unobserve(entry.target); // Stop watching this ad } }); }, { rootMargin: "200px" }); // Starts loading 200px before it enters view // 3. Attach observer to all ad units document.querySelectorAll(".adsbygoogle").forEach(function(ad) { adObserver.observe(ad); }); });