Home / Admin / delay-om-execution.html
Duplicate Snippet

Embed Snippet on Your Site

delay-om-execution.html

Code Preview
html
<!-- This site is converting visitors into subscribers and customers with OptinMonster - https://optinmonster.com -->
<script>
    var loadOM = function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.account=ac;d.getElementsByTagName('head')[0].appendChild(s);}
    
    // Delaying the OptinMonster execution to after the page has finished loading completely
    window.addEventListener('load', function () {
        loadOM(document,71509,80383);
    });
    // OR
    // Delaying the OptinMonster execution to a period where the browser is idle
    window.requestIdleCallback(function () {
        loadOM(document,123456,654321);
    });
</script>
<!-- / OptinMonster -->

Comments

Add a Comment