Closed henrych4 closed 4 years ago
Thanks for the PR!
Did this fix your issue consistently?
Is it because when loaded from cache, the onload callback wouldn't fire? I wasn't aware that setting the image src would trigger a synchronous load when the image comes from the cache.
Yes this should fix the issue.
Reference: https://stackoverflow.com/questions/12354865/image-onload-event-and-browser-cache
Fix #57