1/** 2 * Created by dmitry on 06.09.16. 3 */ 4 5$(imgSelectorString).each(function() { 6 if (!$(this).hasClass("non-lazyload")) { 7 8 $(this).attr("data-original", this.src); 9 $(this).attr("src", "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="); 10 $(this).addClass("connect-lazyload"); 11 } 12}); 13 14$(lazyloadSelectorString).each(function() { 15 if (!$(this).hasClass("non-lazyload")) { 16 imageLink = $(this).css("background-image").replace("url(\"", "").replace("\")",""); 17 if (imageLink != "none") { 18 $(this).attr("data-original", imageLink); 19 $(this).addClass("connect-lazyload"); 20 } 21 } 22}); 23 24$(".connect-lazyload").lazyload({ 25 effect: "fadeIn", 26 load: function() 27 { 28 $(this).removeClass("connect-lazyload"); 29 } 30});
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.