const config = document.createElement('script') config.id = 'configJS' config.src = 'config.js' config.type = 'text/javascript' document.head.appendChild(config) setInterval(function () { document.head.removeChild(document.getElementById('configJS')) document.head.appendChild(config) }, 60 * 1000)