diff --git a/src/slippry.js b/src/slippry.js
index a60ed44..c90b160 100755
--- a/src/slippry.js
+++ b/src/slippry.js
@@ -214,7 +214,7 @@
getFillerProportions = function ($slide) {
var width, height;
if (($('img', $slide).attr("src") !== undefined)) {
- $("
").on("load", function () {
+ $("
").on("load loads", function () {
width = $slide.width();
height = $slide.height();
setFillerProportions(width, height);
@@ -595,13 +595,17 @@
}
loop = 0;
elements.each(function () {
- $(this).one('load error', function () {
+ $(this).one('loads error', function () {
if (++loop === count) {
start();
}
}).each(function () {
if (this.complete) {
- $(this).trigger('load');
+ $(this).trigger('loads');
+ }else{
+ $(this).one('load',function(){
+ $(this).trigger('loads');
+ })
}
});
});