1// https://github.com/culshaw/srcset/blob/master/srcset-polyfill.js 2(function(e,t){function s(e){if(!e.attributes["srcset"])return false;var t=e.attributes["srcset"].nodeValue.split(",");for(var s=0;s<t.length;s++){var o=t[s].match(/^\s*([^\s]+)\s*(\s(\d+)w)?\s*(\s(\d+)h)?\s*(\s(\d+)x)?\s*$/),u=o[1],a=o[3]||false,f=o[5]||false,l=o[7]||1;if(a&&a>n){continue}if(f&&f>r){continue}if(l&&l>i){continue}e.src=u}}if("srcset"in t.createElement("img"))return true;var n=e.innerWidth>0?e.innerWidth:screen.width,r=e.innerHeight>0?e.innerHeight:screen.height,i=e.devicePixelRatio||1;var o=t.getElementsByTagName("img");for(var u=0;u<o.length;u++){s(o[u])}})(window,document)
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.