PageSourceSearch

https://tmcpub.com/js_system/misc/cqLazyImages.js

js tmcpub.com collected 2026-09-30 13:43:10 UTC 672 bytes, 33 lines download raw bytes

1/* Lazy beta */
2var cqLazyImages = cqLazyImages || {
3
4	selector: 'img[data-lazy]',
5
6	init: function()
7	{
8		if( $(cqLazyImages.selector).length > 0 ){
9			$(window).scroll(function(){
10				cqLazyImages.eval();
11			}).focus(function(){
12				cqLazyImages.eval();
13			});
14			cqLazyImages.eval();
15		}
16	},
17
18	eval: function()
19	{
20		var viewportBottomEdge = $(window).scrollTop() + $(window).height();
21		$(cqLazyImages.selector).each(function(){
22			var imgTopEdge = $(this)[0].getBoundingClientRect().top;
23			if( viewportBottomEdge > imgTopEdge ){
24				$(this).removeAttr('data-lazy');
25				$(this).prop('src',$(this).data('src'));
26			}
27		});
28	}
29
30}
31$(function(){
32	cqLazyImages.init();
33});

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.