NAS banner slots load inside their own iframe (public/nas.js): the inline document.write script blocked the page below it, so PolHunter stopped loading halfway while networkadspace.com (rhi) was off for the 2026-10-24 data-center move
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -37,7 +37,7 @@
|
||||
<div class="badge-strip" id="badgeStrip"></div>
|
||||
</section>
|
||||
|
||||
<div class="adslot" data-ad="board"><!-- nas: 468x60 on phones, 728x90 on wider screens --><script>(function(){var m=window.innerWidth<600;document.write('<scr'+'ipt src="https://www.networkadspace.com/showadss.php?'+(m?'w=468&h=60&n=1&bw=468&bh=60':'w=728&h=90&n=1&bw=728&bh=90')+'&c=999"></scr'+'ipt>');})();</script></div>
|
||||
<div class="adslot" data-nas data-ad="board"><!-- nas: 468x60 on phones, 728x90 on wider screens; framed by /nas.js so a dead ad server never blocks the page --></div>
|
||||
|
||||
<section class="section">
|
||||
<h2>Your drips</h2>
|
||||
@@ -59,5 +59,6 @@
|
||||
<script src="https://instantadpay.com/assets/game-strip.js?v=20261003a"></script>
|
||||
<script>if (window.IAPGames) IAPGames.strip(document.getElementById('moreGames'), { current: 'polhunter', title: ' ' }).then(function (n) { var m = document.getElementById('moreGames'), h = m.querySelector('.gs-h'); if (h) h.remove(); document.getElementById('moreGamesSec').hidden = !n; });</script>
|
||||
<script src="/app.js?v=22"></script>
|
||||
<script src="/nas.js?v=20261024" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-1
@@ -71,7 +71,7 @@
|
||||
<div class="ledger" id="recent"><div class="row"><span class="site">Loading…</span></div></div>
|
||||
</section>
|
||||
|
||||
<div class="adslot" data-ad="home-footer"><!-- nas: 468x60 on phones, 728x90 on wider screens --><script>(function(){var m=window.innerWidth<600;document.write('<scr'+'ipt src="https://www.networkadspace.com/showadss.php?'+(m?'w=468&h=60&n=1&bw=468&bh=60':'w=728&h=90&n=1&bw=728&bh=90')+'&c=999"></scr'+'ipt>');})();</script></div>
|
||||
<div class="adslot" data-nas data-ad="home-footer"><!-- nas: 468x60 on phones, 728x90 on wider screens; framed by /nas.js so a dead ad server never blocks the page --></div>
|
||||
|
||||
<footer class="foot">
|
||||
PolHunter rewards completed missions. Rewards are not income and are not guaranteed; the daily pool is limited, and when it is spent claims close until midnight Central. Drips are random within the posted range. Cryptocurrency involves risk of loss. Hunters sign in with an InstantAdPay account; no account is created here.
|
||||
@@ -114,5 +114,6 @@
|
||||
document.querySelectorAll('a[href="https://instantadpay.com/api/my/polhunter"]').forEach(function (a) { if (r) a.href = a.href + '?ref=' + encodeURIComponent(r); });
|
||||
if (framed) document.querySelectorAll('a[href^="http"]').forEach(function (a) { if (a.host !== location.host) { a.target = '_blank'; a.rel = 'noopener'; } });
|
||||
})();</script>
|
||||
<script src="/nas.js?v=20261024" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
+2
-1
@@ -41,7 +41,7 @@
|
||||
<div class="badge-strip" id="badges"></div>
|
||||
</section>
|
||||
|
||||
<div class="adslot" data-ad="leaders"><!-- nas: 468x60 on phones, 728x90 on wider screens --><script>(function(){var m=window.innerWidth<600;document.write('<scr'+'ipt src="https://www.networkadspace.com/showadss.php?'+(m?'w=468&h=60&n=1&bw=468&bh=60':'w=728&h=90&n=1&bw=728&bh=90')+'&c=999"></scr'+'ipt>');})();</script></div>
|
||||
<div class="adslot" data-nas data-ad="leaders"><!-- nas: 468x60 on phones, 728x90 on wider screens; framed by /nas.js so a dead ad server never blocks the page --></div>
|
||||
|
||||
<footer class="foot">PolHunter rewards completed missions. Rewards are not income and are not guaranteed. Cryptocurrency involves risk of loss. <br><a href="https://instantadpay.com">InstantAdPay</a></footer>
|
||||
</div>
|
||||
@@ -75,5 +75,6 @@
|
||||
document.querySelectorAll('a[href="https://instantadpay.com/api/my/polhunter"]').forEach(function (a) { if (r) a.href = a.href + '?ref=' + encodeURIComponent(r); });
|
||||
if (framed) document.querySelectorAll('a[href^="http"]').forEach(function (a) { if (a.host !== location.host) { a.target = '_blank'; a.rel = 'noopener'; } });
|
||||
})();</script>
|
||||
<script src="/nas.js?v=20261024" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
// NAS banner slots (2026-10-24): each ad loads inside its own frame, so a slow or offline ad server (networkadspace.com
|
||||
// sits on the rhi box) can only blank its own box. The old inline document.write script blocked the page below it,
|
||||
// and PolHunter stopped loading halfway during the 10-24 data-center move.
|
||||
(function () {
|
||||
function fill(el) {
|
||||
var m = window.innerWidth < 600, w = m ? 468 : 728, h = m ? 60 : 90;
|
||||
var src = 'https://www.networkadspace.com/showadss.php?w=' + w + '&h=' + h + '&n=1&bw=' + w + '&bh=' + h + '&c=999';
|
||||
var f = document.createElement('iframe');
|
||||
f.width = w; f.height = h; f.title = 'Advertisement'; f.loading = 'lazy';
|
||||
f.setAttribute('scrolling', 'no');
|
||||
f.style.cssText = 'border:0;max-width:100%;display:block;margin:0 auto;background:transparent';
|
||||
f.srcdoc = '<!doctype html><html><head><base target="_blank"><style>html,body{margin:0;padding:0;overflow:hidden;background:transparent}</style></head><body><script src="' + src + '"><\/script></body></html>';
|
||||
el.appendChild(f);
|
||||
}
|
||||
function run() { var s = document.querySelectorAll('[data-nas]'); for (var i = 0; i < s.length; i++) fill(s[i]); }
|
||||
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', run); else run();
|
||||
})();
|
||||
+2
-1
@@ -71,7 +71,7 @@
|
||||
<div class="grid" id="swipes"></div>
|
||||
</section>
|
||||
|
||||
<div class="adslot" data-ad="promo"><!-- nas: 468x60 on phones, 728x90 on wider screens --><script>(function(){var m=window.innerWidth<600;document.write('<scr'+'ipt src="https://www.networkadspace.com/showadss.php?'+(m?'w=468&h=60&n=1&bw=468&bh=60':'w=728&h=90&n=1&bw=728&bh=90')+'&c=999"></scr'+'ipt>');})();</script></div>
|
||||
<div class="adslot" data-nas data-ad="promo"><!-- nas: 468x60 on phones, 728x90 on wider screens; framed by /nas.js so a dead ad server never blocks the page --></div>
|
||||
|
||||
<footer class="foot">PolHunter rewards completed missions. Rewards are not income and are not guaranteed; the daily pool is limited and drips are random within the posted range. Cryptocurrency involves risk of loss. <br><a href="https://instantadpay.com">InstantAdPay</a></footer>
|
||||
</div>
|
||||
@@ -130,5 +130,6 @@
|
||||
document.querySelectorAll('a[href="https://instantadpay.com/api/my/polhunter"]').forEach(function (a) { if (r) a.href = a.href + '?ref=' + encodeURIComponent(r); });
|
||||
if (framed) document.querySelectorAll('a[href^="http"]').forEach(function (a) { if (a.host !== location.host) { a.target = '_blank'; a.rel = 'noopener'; } });
|
||||
})();</script>
|
||||
<script src="/nas.js?v=20261024" defer></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user