if (typeof BdSet != 'object') { BdSet = {}; } if (typeof BdSet.config != 'object') { BdSet.config = {}; } function load_wp_configs(event) { if (!document.getElementById('wp-configs') ) { return setTimeout( load_wp_configs , 50 ); } // BdSet.config.ready = true const c = document.getElementById('wp-configs'); for(let i in c.dataset) { BdSet.config[i] = c.dataset[i] } } load_wp_configs()