1$(function uil_init_js_prefetch() { 2 3 var head = document.getElementsByTagName('head')[0]; 4 5 $(document).on('mouseenter', '*[data-prefetch]', function () { 6 var el = this.href ? this : this.getElementsByTagName('a')[0]; 7 if (el === undefined || el.href.indexOf(location.host) === -1 || el.prefetchAdded) return; 8 el.prefetchAdded = true; 9 if (!el.href) return; 10 var lnk = document.createElement('link'); 11 lnk.setAttribute('rel', 'prefetch'); 12 lnk.setAttribute('href', el.href); 13 head.appendChild(lnk); 14 // console.log('Prefetch: ' + el.href); 15 }); 16 17});
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.