From 5de5b3ddb7de74c100633c0c338a45afb496b9eb Mon Sep 17 00:00:00 2001 From: Steve Hanlon Date: Thu, 9 Jul 2026 08:20:36 +0100 Subject: [PATCH] Reduce TCF bridge poll timeout from 10s to 3s (v1.3.4) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 10s was unnecessarily long — any EEA user with Funding Choices properly loaded will have __tcfapi within 3s. Reducing the timeout means non-TCF visitors (Americas etc.) receive the granted fallback 7 seconds sooner. Co-Authored-By: Claude Sonnet 4.6 --- att-consent.php | 4 ++-- public/js/tcf-bridge.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/att-consent.php b/att-consent.php index fc429d0..60d61b8 100644 --- a/att-consent.php +++ b/att-consent.php @@ -3,7 +3,7 @@ * Plugin Name: ATT Consent * Plugin URI: https://github.com/att-consent/att-consent * Description: Google Consent Mode v2 cookie consent with session attribution preservation, custom script management, and full gtag.js/GTM support. - * Version: 1.3.3 + * Version: 1.3.4 * Requires at least: 6.0 * Requires PHP: 7.4 * Author: ATT Consent @@ -18,7 +18,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } -define( 'ATT_CC_VERSION', '1.3.3' ); +define( 'ATT_CC_VERSION', '1.3.4' ); define( 'ATT_CC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) ); define( 'ATT_CC_PLUGIN_URL', plugin_dir_url( __FILE__ ) ); define( 'ATT_CC_PLUGIN_BASENAME', plugin_basename( __FILE__ ) ); diff --git a/public/js/tcf-bridge.js b/public/js/tcf-bridge.js index 28dc8ae..41bdf04 100644 --- a/public/js/tcf-bridge.js +++ b/public/js/tcf-bridge.js @@ -30,7 +30,7 @@ return; } - var MAX_WAIT_MS = 10000; + var MAX_WAIT_MS = 3000; var POLL_INTERVAL = 100; var elapsed = 0; var lastSignature = '';