PageSourceSearch

https://www.0101.co.jp/js/plugins/imagesloaded.js

js 0101.co.jp collected 2026-10-02 02:32:44 UTC 1,058 bytes, 34 lines download raw bytes

1// $('img.photo',this).imagesLoaded(myFunction)
2// execute a callback when all images have loaded.
3// needed because .load() doesn't work on cached images
4
5// mit license. paul irish. 2010.
6// webkit fix from Oren Solomianik. thx!
7
8// callback function is passed the last image to load
9//   as an argument, and the collection as `this`
10
11
12$.fn.imagesLoaded = function(callback){
13	var elems = this.find('img'),
14	len   = elems.length,
15	blank = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";
16	elems.on('load.imgloaded',function(){
17		if (--len <= 0 && this.src !== blank){ 
18			elems.unbind('load.imgloaded');
19			callback.call(elems,this); 
20		}
21	}).each(function(){
22		// cached images don't fire load sometimes, so we reset src.
23		if (this.complete || this.complete === undefined){
24			var src = this.src;
25			// webkit hack from http://groups.google.com/group/jquery-dev/browse_thread/thread/eee6ab7b2da50e1f
26			// data uri bypasses webkit log warning (thx doug jones)
27			this.src = blank;
28			this.src = src;
29		}
30	}); 
31
32	return this;
33
34};

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.