0) { Ecwid.init(); } if( typeof ecwidSaveDynamicCss !== 'undefined' ) { ecwidSaveDynamicCss(); } }); } } var isTouchDevice = false; var documentEventsForLazyLoading = ['mousedown', 'mouseup', 'mousemove', 'contextmenu', 'keydown', 'keyup']; var documentTouchEventsForLazyLoading = ['touchstart', 'touchend', 'touchcancel', 'touchmove']; if (!!('ontouchstart' in window)) { isTouchDevice = true; } var toggleEvent = function (el, add, event) { if (add) { el.addEventListener(event, ecwidLazyScriptjsLoad); } else { el.removeEventListener(event, ecwidLazyScriptjsLoad); } } if (isTouchDevice) { documentTouchEventsForLazyLoading.forEach( function applyEvent(event) { toggleEvent(document, true, event); } ); } else { documentEventsForLazyLoading.forEach( function applyEvent(event) { toggleEvent(document, true, event); } ); } })(); Scroll to Top