{# <link rel="preload" as="script" href="https://ads.talkscreativity.com/assets/publisher/hdblogit/init.js">
<link rel="preload" as="script" href="https://securepubads.g.doubleclick.net/tag/js/gpt.js"> #}

<script>
    (function () {
        var loadCmp = function () {
            var modern = document.createElement('script');
            modern.type = 'module';
            modern.src = 'https://cmp.pubtech.ai/444/pubtech-cmp-v2-esm.js';
            document.head.appendChild(modern);

            var legacy = document.createElement('script');
            legacy.noModule = true;
            legacy.src = 'https://cmp.pubtech.ai/444/pubtech-cmp-v2.js';
            legacy.setAttribute('data-src', legacy.src);
            document.head.appendChild(legacy);
        };

        var scheduleCmp = function () {
            window.setTimeout(loadCmp, 2500);
        };

        if (document.readyState === 'complete') {
            scheduleCmp();
        } else {
            window.addEventListener('load', scheduleCmp, { once: true });
        }
    }());
</script>
{# <script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script> #}

<script type="text/javascript">
    window.googletag = window.googletag || { cmd: [] };
    window.googletag.cmd = window.googletag.cmd || [];
</script>

{# <script data-cfasync="false" async src="https://ads.talkscreativity.com/assets/publisher/hdblogit/init.js"></script> #}

<script>
    window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) };

    (function () {
        var loadPlausible = function () {
            if (document.querySelector('script[data-plausible-loader]')) return;
            var script = document.createElement('script');
            script.defer = true;
            script.fetchPriority = 'low';
            script.dataset.domain = 'hdblog.it';
            script.src = 'https://mary.hdblog.it/js/script.outbound-links.pageview-props.tagged-events.js';
            script.setAttribute('data-plausible-loader', '');
            document.head.appendChild(script);
        };

        var schedulePlausible = function () {
            if ('requestIdleCallback' in window) {
                window.requestIdleCallback(loadPlausible, { timeout: 3000 });
            } else {
                window.setTimeout(loadPlausible, 1800);
            }
        };

        if (document.readyState === 'complete') {
            schedulePlausible();
        } else {
            window.addEventListener('load', schedulePlausible, { once: true });
        }
    }());
</script>
