Show loading screen while filter is being applied
问题 Applying a filter to an image object that occupies the whole canvas can take a couple seconds with larger images and I want to display a loading screen while this is happening but the .show() method isn't firing until after the filter has been applied. Current method that applies the filter: applyFilter: function (index, filter) { var obj = designer.baseImage, $loading = $('#loading-canvas'); console.log('show loading'); $loading.show(); obj.filters[index] = filter; obj.applyFilters(function