Changing the configuration with a different URL or loopback address for Url will not stop Glimpse to execute the request version check request. I found that version checking starts with the client function versionCheck .
Here is the fix I figured out how to disable the versionCheck function of a versionCheck object:
document.addEventListener("DOMContentLoaded", function () { // A wierd fix to wait until glimpse is initialized. setTimeout(turnoffGlimpseVersionCheck, 100); }); function turnoffGlimpseVersionCheck() { if (typeof glimpse == 'undefined') { console.log("glimpse not found!") } else { console.log(glimpse.settings); glimpse.versionCheck = function () { }; console.log("glimpse updates turned off!!") } }
It may not sound very good, but it will just be a trick. C>
Update
Here's the updated and better version:
<script> document.addEventListener("DOMContentLoaded", function () { var scripts = document.getElementsByTagName("script"); var isGlimpseLoaded = false; for (var i = 0; i < scripts.length; ++i) { var src = scripts[i].getAttribute('src'); if (src == null) continue; if (src.indexOf('Glimpse.axd') > -1) { turnoffGlimpseVersionCheck(); break; } } }); function turnoffGlimpseVersionCheck() { glimpse.versionCheck = function () { }; console.log('glimpse version check disabled!!') } </script>
source share