However, the loader gets stuck while the photo is being loaded to the preview div. It appears quickly as soon as the image is actually loaded. To me it looks like the show() action is being halted or put on hold while the image is loading. Any ideas on how to fix it? Thanks!
Hello -
I'm trying to add a basic css loader to the cropit like this:
$('.image-editor').cropit({ onImageLoading:function () { $('#loader1').show(); }, onImageLoaded: function() { $('#loader1').hide();} });
However, the loader gets stuck while the photo is being loaded to the preview div. It appears quickly as soon as the image is actually loaded. To me it looks like the show() action is being halted or put on hold while the image is loading. Any ideas on how to fix it? Thanks!