nodebb-plugin-ezoic-infinite 1.8.73 → 1.8.74

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.
Files changed (2) hide show
  1. package/library.js +4 -6
  2. package/package.json +1 -1
package/library.js CHANGED
@@ -135,10 +135,10 @@ const HEAD_PRECONNECTS = [
135
135
  '<link rel="dns-prefetch" href="https://securepubads.g.doubleclick.net">',
136
136
  ].join('\n');
137
137
 
138
- // Match v50 exactly: CMP → sa.min.js, no stubs.
139
- // sa.min.js defines _ezaq and ezstandalone itself.
140
- // Placing stubs before or alongside sa.min.js changes Ezoic's init path
141
- // and causes "Timed out waiting for loadingStatus" errors.
138
+ // Working config: sa.min.js loaded synchronously (no async).
139
+ // async on sa.min.js caused "Timed out waiting for loadingStatus LOADING"
140
+ // because it could execute before CMP was ready.
141
+ // analytics.js provides Ezoic analytics integration.
142
142
  const EZOIC_SCRIPTS = [
143
143
  '<script data-cfasync="false" src="https://cmp.gatekeeperconsent.com/min.js"></script>',
144
144
  '<script data-cfasync="false" src="https://the.gatekeeperconsent.com/cmp.min.js"></script>',
@@ -170,8 +170,6 @@ plugin.injectEzoicHead = async (data) => {
170
170
 
171
171
  if (excluded) {
172
172
  const cfg = buildClientConfig(settings, true);
173
- // Minimal stub for excluded users — prevents ReferenceError if other
174
- // scripts reference _ezaq or ezstandalone
175
173
  const stub = '<script data-cfasync="false">'
176
174
  + 'window._ezaq=window._ezaq||{};'
177
175
  + 'window.ezstandalone=window.ezstandalone||{};'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.8.73",
3
+ "version": "1.8.74",
4
4
  "description": "Production-ready Ezoic infinite ads integration for NodeBB 4.x",
5
5
  "main": "library.js",
6
6
  "license": "MIT",