Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 569 Bytes

README.md

File metadata and controls

22 lines (18 loc) · 569 Bytes

imageSRC

imageSRC, a jQuery plugin to add any source type (either dataURL, File object or string) with progress event

Sample usage:

$('img')
	.on('progress', function(event, originalEvent, perc, loaded, total) {
		console.log(arguments);
	})
	.on('load', function(event, originalEvent) {
		console.log(arguments);
	})
	.src(file)
;

Where file is either a File instance, a dataURL string or a string value.

Dependencies: filereader jQuery extensions:https://github.com/dwoutsourcing/filereader xhr2 jQuery extensions: https://github.com/dwoutsourcing/xhr2