(function () {var f = function () { function loadChains(chains, limit, onChainDone) { function newImageLoader(url) { return function () { var e = new Image(); addListeners(e); e.src = url; }; } function newScriptLoader(url) { return function () { var e = document.createElement('script'); e.type = 'text/javascript'; e.async = true; addListeners(e); e.src = url; document.head.appendChild(e); }; } function newIframeLoader(url) { return function () { var e = document.createElement('iframe'); e.style.display = 'none'; e.width = 1; e.height = 1; addListeners(e); e.src = url; document.body.appendChild(e); }; } function addListeners(e) { addLoadErrorListeners(e, loadNext); if (typeof onChainDone === 'function') { addLoadErrorListeners(e, onChainDone); } } function addLoadErrorListeners(e, listener) { if (typeof e.addEventListener === 'function') { e.addEventListener('load', listener, false); e.addEventListener('error', listener, false); } else if (typeof e.attachEvent === 'function') { e.attachEvent('onload', listener); e.attachEvent('onerror', listener); } } function loadNext() { var next = loaders.shift(); if (typeof next === "function") { setTimeout(next); } } var loaders = chains.reduce(function (acc, value) { var mode = value[0]; var url = value[1]; switch (mode) { case 'image': acc.push(newImageLoader(url)); break; case 'script': acc.push(newScriptLoader(url)); break; case 'iframe': acc.push(newIframeLoader(url)); break; } return acc; }, []); for (var i = 0; i < limit; i++) { loadNext(); } } var chains = []; chains.push(['image', 'https://id.rlcdn.com/463636.gif']); chains.push(['image', 'https://aa.agkn.com/adscores/s.pixel?sid=9102279158&em=364a52d5b929c3efd5fea28ebf84c7fc']); chains.push(['image', 'https://aa.agkn.com/adscores/s.pixel?sid=9102280158&em=711153b5e987f01875bda29a9514e99431ac2a0a']); chains.push(['image', 'https://widget.criteo.com/event?a=40136&v=4.1.0&p0=e%3Dce%26m%3D%255B364a52d5b929c3efd5fea28ebf84c7fc%255D&rt=gif']); chains.push(['image', 'https://login.dotomi.com/ucm/UCMController?dtm_com=29&dtm_fid=103&dtm_cid=3167&dtm_cmagic=20c86a&dtm_format=6&cli_promo_id=110&dtm_email_hash=364a52d5b929c3efd5fea28ebf84c7fc']); chains.push(['image', 'https://i.liadm.com/s/h/19713?m=364a52d5b929c3efd5fea28ebf84c7fc&sh1=711153b5e987f01875bda29a9514e99431ac2a0a&']); chains.push(['image', 'https://cm.g.doubleclick.net/pixel?google_nid=pippio_dmp&google_cm&google_no_sc&m=CIoqEisKJggEEAAaIDM2NGE1MmQ1YjkyOWMzZWZkNWZlYTI4ZWJmODRjN2ZjEO8ZGjYIhtCczwUSBAgCEAASBQilDxAAEgUI6hcQABIFCKgZEAASBQipGRAAEgUIuRwQABIFCI5EEAA']); loadChains(chains, 10, (typeof onDone === "function") ? onDone : null); }; if (document.body) { f(); } else { document.addEventListener('DOMContentLoaded', f); } }());