Problem : zoomsl does not work with jquery 3.3.1 version
Error :

Solution :
You need to change new Image()
.load()
function in zoomsl-3.0.js
Apply $("img").one("load", function() { ... }
there
Please check codepen example here
Old Code:
$.fn.imagezoomsl = function(options){
options = options || {};
return this.each(function(){
if (!$(this).is("img")) return true;
var that = this;
setTimeout(function () {
$(new Image()).load(function(){//this is old line
sergelandimagezoomer.init($(that), options);
}).attr('src', $(that).attr('src'));
}, 30);
});
};
New Code:
$.fn.imagezoomsl = function(options){
options = options || {};
return this.each(function(){
if (!$(this).is("img")) return true;
var that = this;
setTimeout(function () {
$("img").one("load", function() {//new code
sergelandimagezoomer.init($(that), options);
}).attr('src', $(that).attr('src'));
}, 30);
});
};
You can see that $("img").one("load", function() { ... }
is applied in setTimeout
function.
Just change this line and it will start working.
This change will keep working in jquery older versions too.
I hope you found the solution, please fill free to ask question.