nodebb-plugin-ezoic-infinite 1.9.5 → 1.9.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/library.js CHANGED
@@ -171,6 +171,10 @@ function serializeInlineConfig(cfg) {
171
171
  // ── Head injection ───────────────────────────────────────────────────────────
172
172
 
173
173
  const HEAD_PRECONNECTS = [
174
+ // Preload blocking scripts so the download starts before the parser reaches <script> tags
175
+ '<link rel="preload" as="script" href="https://cmp.gatekeeperconsent.com/min.js" crossorigin>',
176
+ '<link rel="preload" as="script" href="https://the.gatekeeperconsent.com/cmp.min.js" crossorigin>',
177
+ '<link rel="preload" as="script" href="https://www.ezojs.com/ezoic/sa.min.js" crossorigin>',
174
178
  // Ezoic ad serving
175
179
  '<link rel="preconnect" href="https://g.ezoic.net" crossorigin>',
176
180
  '<link rel="preconnect" href="https://go.ezoic.net" crossorigin>',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.9.5",
3
+ "version": "1.9.6",
4
4
  "description": "Production-ready Ezoic infinite ads integration for NodeBB 4.x",
5
5
  "main": "library.js",
6
6
  "license": "MIT",
package/public/client.js CHANGED
@@ -42,8 +42,8 @@
42
42
  const MAX_BURST_STEPS = 8;
43
43
  const BURST_WINDOW_MS = 2_000;
44
44
 
45
- const IO_MARGIN_DESKTOP = '1200px 0px 1200px 0px';
46
- const IO_MARGIN_MOBILE = '1500px 0px 1500px 0px';
45
+ const IO_MARGIN_DESKTOP = '1500px 0px 1500px 0px';
46
+ const IO_MARGIN_MOBILE = '2000px 0px 2000px 0px';
47
47
 
48
48
  const SEL = {
49
49
  post: '[component="post"][data-pid]',
@@ -491,7 +491,7 @@
491
491
  const id = pickId(poolKey);
492
492
  if (id) {
493
493
  const w = insertAfter(el, id, klass, key);
494
- if (w) { observePh(id); inserted++; }
494
+ if (w) { observePh(id); enqueueShow(id); inserted++; }
495
495
  } else {
496
496
  if (!recycleWrap(klass, el, key)) break;
497
497
  inserted++;
@@ -695,7 +695,7 @@
695
695
  S.burstCount++;
696
696
  scheduleRun(n => {
697
697
  if (!n && !S.pending.size) { S.burstActive = false; return; }
698
- setTimeout(step, n > 0 ? 100 : 250);
698
+ setTimeout(step, n > 0 ? 50 : 100);
699
699
  });
700
700
  };
701
701
  step();