| Current Path : /home/rtorresani/www/vendor/magento/module-theme/view/frontend/templates/js/ |
| Current File : //home/rtorresani/www/vendor/magento/module-theme/view/frontend/templates/js/css_rel_preload.phtml |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
* @deprecated as polyfill isn't used anymore
*/
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
$scriptString = <<<script
/*! loadCSS rel=preload polyfill. [c]2017 Filament Group, Inc. MIT License */
!function(t){"use strict";t.loadCSS||(t.loadCSS=function(){});var e=loadCSS.relpreload={};
if(e.support=function(){var e;try{e=t.document.createElement("link").relList.supports("preload")}
catch(t){e=!1}return function(){return e}}(),e.bindMediaToggle=function(t){var e=t.media||"all";
function a(){t.media=e}t.addEventListener?t.addEventListener("load",a):t.attachEvent&&t.attachEvent("onload",a),
setTimeout(function(){t.rel="stylesheet",t.media="only x"}),setTimeout(a,3e3)},e.poly=function(){if(!e.support())
for(var a=t.document.getElementsByTagName("link"),n=0;n<a.length;n++){var o=a[n];"preload"!==o.rel||
"style"!==o.getAttribute("as")||o.getAttribute("data-loadcss")||
(o.setAttribute("data-loadcss",!0),e.bindMediaToggle(o))}},!e.support()){e.poly();var a=t.setInterval(e.poly,500);
t.addEventListener?t.addEventListener("load",
function(){e.poly(),t.clearInterval(a)}):t.attachEvent&&t.attachEvent("onload",
function(){e.poly(),t.clearInterval(a)})}"undefined"!=typeof exports?exports.loadCSS=loadCSS:t.loadCSS=loadCSS}
("undefined"!=typeof global?global:this);
script;