From 887ce5613c4fa07f0300fb8abed5657c18f35bc6 Mon Sep 17 00:00:00 2001 From: James Rosewell Date: Wed, 16 Sep 2026 01:51:55 +0100 Subject: [PATCH 1/2] DOC: Say how the Preference Management Platform decides to add this script, as it now does --- JavaScriptResource.mustache | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/JavaScriptResource.mustache b/JavaScriptResource.mustache index 0ae6bd5..db8024a 100644 --- a/JavaScriptResource.mustache +++ b/JavaScriptResource.mustache @@ -1463,10 +1463,9 @@ fiftyoneDegreesManager = function() { } // Loading the script twice replaces the first instance and its state. The -// Preference Management Platform adds this script only where the page's -// document carries no client script tag, and where a tag is there it waits -// for that tag to run, so that convenience never trips this warning and -// nobody should "fix" it to allow for it. The value is tested and not the +// Preference Management Platform adds this script only where, once the +// page has loaded, no client script object is on it, so that convenience +// never trips this warning and nobody should "fix" it to allow for it. The value is tested and not the // property, because var {{_objName}} at the top level creates the global // property with the value undefined before any statement runs, so testing // the property would warn on every load. The text names the object and From ea72bb7f2f52e4c3247af9f89bff8352337f5303 Mon Sep 17 00:00:00 2001 From: James Rosewell Date: Wed, 16 Sep 2026 01:53:49 +0100 Subject: [PATCH 2/2] DOC: Wrap the comment at the width the rest of the file keeps --- JavaScriptResource.mustache | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/JavaScriptResource.mustache b/JavaScriptResource.mustache index db8024a..a139ea2 100644 --- a/JavaScriptResource.mustache +++ b/JavaScriptResource.mustache @@ -1465,12 +1465,12 @@ fiftyoneDegreesManager = function() { // Loading the script twice replaces the first instance and its state. The // Preference Management Platform adds this script only where, once the // page has loaded, no client script object is on it, so that convenience -// never trips this warning and nobody should "fix" it to allow for it. The value is tested and not the -// property, because var {{_objName}} at the top level creates the global -// property with the value undefined before any statement runs, so testing -// the property would warn on every load. The text names the object and -// nothing else, because printing the existing object would print its -// payload, identifiers included. +// never trips this warning and nobody should "fix" it to allow for it. +// The value is tested and not the property, because var {{_objName}} at +// the top level creates the global property with the value undefined +// before any statement runs, so testing the property would warn on every +// load. The text names the object and nothing else, because printing the +// existing object would print its payload, identifiers included. if (typeof window !== 'undefined' && typeof window["{{_objName}}"] !== 'undefined') { console.warn("51Degrees: {{_objName}} already exists on this page. Loading the script twice replaces it. Load it once and call {{_objName}}.refresh() to update.");