peol / jquery.imgloaded

Fake fork of Paul Irish's image loaded method for jQuery
48 stars 22 forks source link

Getting this plugin working again #7

Closed jefferyto closed 7 years ago

jefferyto commented 13 years ago

Initially I wanted to reuse the approach from Paul Irish's gist (setting the image src to a data uri, then back again), but this was causing more side effects than I anticipated so I switched to a simpler .trigger('load'). If you'd rather have a cleaner list of commits to merge, I can redo the changes in another branch.

The biggest change to users of this plugin is that the event handler is called outside the bind call stack (using setTimeout). I've updated the test suite to reflect this.

peol commented 13 years ago

I will look this over this week, it would be awesome if we could make it work again.

jefferyto commented 13 years ago

Any thoughts or comments?