When a img's src does not change the load event is not called. This is by design as in fact, nothing has loaded.
We want to see the loaded event after we have passed new state to imgix-image and after the browser loads the image (whether from cache or from network). We are not trying to express a dependency on an images download, only a dependency on when the browser thinks the image is ready.
When a
img
's src does not change theload
event is not called. This is by design as in fact, nothing has loaded. We want to see the loaded event after we have passed new state toimgix-image
and after the browser loads the image (whether from cache or from network). We are not trying to express a dependency on an images download, only a dependency on when the browser thinks the image is ready.Here is a branch that fixes ^ https://github.com/Duder-onomy/ember-cli-imgix/tree/hotfix-image-loaded-from-cache-does-not-fire-on-load
Going to hold off on the full PR until the 'srcset' changes have landed and stabilized.