PageSourceSearch

https://customer.nationalgrid.co.uk/public/javascripts/lazysizes/lazysizes-events.js

js nationalgrid.co.uk collected 2026-09-24 09:02:17 UTC 480 bytes, 13 lines download raw bytes

1document.addEventListener('lazyloaded', function(e){
2    var src = e.target.src.replace(/https?:\/\/[^\/]+\//, '/')
3    var imgs = e.target && document.querySelectorAll('img.core-lazyload[data-lazy-src="'+src+'"]');
4    
5    if (imgs) {
6        for (var im,i=0;(im=imgs[i]);i++) {
7            if (im != e.target) {
8                im.src = src;
9                im.className = im.className.replace("core-lazyload(ing|ed)", "")+' core-lazyloaded';
10            }
11        }
12    }
13});

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.