PageSourceSearch

https://businessandfinance.com/wp-content/themes/badnf_theme/library/js/libs/jquery.imagesloaded.js

js businessandfinance.com collected 2026-10-02 08:02:18 UTC 1,514 bytes, 52 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// Modified with a two-pass approach to changing image
6// src. First, the proxy imagedata is set, which leads
7// to the first callback being triggered, which resets
8// imagedata to the original src, which fires the final,
9// user defined callback.
10
11// modified by yiannis chatzikonstantinou.
12
13// original:
14// mit license. paul irish. 2010.
15// webkit fix from Oren Solomianik. thx!
16
17// callback function is passed the last image to load
18//   as an argument, and the collection as `this`
19
20
21jQuery.fn.imagesLoaded = function( callback ){
22  var elems = this.find( 'img' ),
23      elems_src = [],
24      self = this,
25      len = elems.length;
26
27  if ( !elems.length ) {
28    callback.call( this );
29    return this;
30  }
31
32  elems.one('load error', function() {
33    if ( --len === 0 ) {
34      // Rinse and repeat.
35      len = elems.length;
36      elems.one( 'load error', function() {
37        if ( --len === 0 ) {
38          callback.call( self );
39        }
40      }).each(function() {
41        this.src = elems_src.shift();
42      });
43    }
44  }).each(function() {
45    elems_src.push( this.src );
46    // webkit hack from http://groups.google.com/group/jquery-dev/browse_thread/thread/eee6ab7b2da50e1f
47    // data uri bypasses webkit log warning (thx doug jones)
48    this.src = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";
49  });
50
51  return this;
52};

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.