Current Path : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/landing/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/bitrix/js/landing/polyfill.min.js |
(function(t){"use strict";if(!t.loadCSS){t.loadCSS=function(){}}var e=loadCSS.relpreload={};e.support=function(){var e;try{e=t.document.createElement("link").relList.supports("preload")}catch(t){e=false}return function(){return e}}();e.bindMediaToggle=function(t){var e=t.media||"all";function a(){t.media=e}if(t.addEventListener){t.addEventListener("load",a)}else if(t.attachEvent){t.attachEvent("onload",a)}setTimeout(function(){t.rel="stylesheet";t.media="only x"});setTimeout(a,3e3)};e.poly=function(){if(e.support()){return}var a=t.document.getElementsByTagName("link");for(var n=0;n<a.length;n++){var o=a[n];if(o.rel==="preload"&&o.getAttribute("as")==="style"&&!o.getAttribute("data-loadcss")){o.setAttribute("data-loadcss",true);e.bindMediaToggle(o)}}};if(!e.support()){e.poly();var a=t.setInterval(e.poly,500);if(t.addEventListener){t.addEventListener("load",function(){e.poly();t.clearInterval(a)})}else if(t.attachEvent){t.attachEvent("onload",function(){e.poly();t.clearInterval(a)})}}t.loadCSS=loadCSS})(window); //# sourceMappingURL=polyfill.map.js