Reduce TCF bridge poll timeout from 10s to 3s (v1.3.4)
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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__ ) );
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var MAX_WAIT_MS = 10000;
|
||||
var MAX_WAIT_MS = 3000;
|
||||
var POLL_INTERVAL = 100;
|
||||
var elapsed = 0;
|
||||
var lastSignature = '';
|
||||
|
||||
Reference in New Issue
Block a user