fix(js): wait for adsbygoogle.js before push scripts

Race condition caused push to execute before library loaded.
Add onload callback to loadAdSenseScripts() function.
This commit is contained in:
FrankZamora
2025-12-10 12:44:04 -06:00
parent fae4def974
commit 555541b2a0
2 changed files with 37 additions and 9 deletions

View File

@@ -18,7 +18,7 @@ if (!defined('ABSPATH')) {
}
// Definir constante de versión del tema
define('ROI_VERSION', '1.0.21');
define('ROI_VERSION', '1.0.22');
// =============================================================================
// 1. CARGAR AUTOLOADER MANUAL