weebly statistics


South African Pharmacy Council (SAPC)

SAPC Customer Care line: 0861 7272 00 or +27(0)12 319 8500
Facsimile: +27(0)12 321 1492/+27(0)12 321 1479
Email: customercare@sapc.za.org
Physical: SAPC Building, 591 Belvedere Street, Arcadia, Pretoria
Postal: PB X40040, Arcadia, 0007
GPS co ordinates: - S25 44'20", E28 12'27"

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); }); });