1window.lazySizesConfig = window.lazySizesConfig || {}; 2 3// Set Classes. 4window.lazySizesConfig.lazyClass = 'pk-lazyload'; 5window.lazySizesConfig.loadedClass = 'pk-lazyloaded'; 6window.lazySizesConfig.preloadClass = 'pk-lazypreload'; 7window.lazySizesConfig.loadingClass = 'pk-lazyloading'; 8 9// Set Attrs. 10window.lazySizesConfig.srcAttr = 'data-pk-src'; 11window.lazySizesConfig.srcsetAttr = 'data-pk-srcset'; 12window.lazySizesConfig.sizesAttr = 'data-pk-sizes'; 13 14// Set sizes if the image is not width. 15document.addEventListener( 'lazyloaded', function (e) { 16 if ( ! e.target.getAttribute( 'width' ) ) { 17 e.target.setAttribute( 'sizes', e.target.getAttribute( 'data-ls-sizes' ) ); 18 } 19} );
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.