1 if ('NodeList' in window && !NodeList.prototype.forEach) { 2 NodeList.prototype.forEach = function (callback, thisArg) { 3 thisArg = thisArg || window; 4 for (var i = 0; i < this.length; i++) { 5 callback.call(thisArg, this[i], i, this); 6 } 7 }; 8 } 9 10function cssPreloadLinks() 11{ 12 var links = document.getElementsByTagName('link'); 13 for (var i = 0; i < links.length; i++) { 14 var link = links[i]; 15 // qualify links to those with rel=preload and as=style attrs 16 if (link.rel === 'preload' && link.getAttribute('as') === 'style') { 17 // prevent re-running on link 18 link.setAttribute('rel', 'stylesheet'); 19 } 20 } 21} 22 23document.addEventListener('DOMContentLoaded', function(){ 24 cssPreloadLinks() 25}); 26cssPreloadLinks();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.