-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with FF 26 after chaging src atr. of an image #121
Comments
I'm having the same problem. |
I have the same problem on firefox 28 replacing a dummy src (base64 encoded blank gif) with the real real src. |
I'm having the same issue with FF30... |
Just changing the source was not enough. |
@Hiswe - thanks for your feedback! |
BTW: this is not an imagesloaded issue, but usage of imagesloaded can be impacted by this FF issue... |
Honestly I don't even remember which project I was working on when I hit this issue. Grepping my source base is inconclusive -- I may have set the |
@Kris-B Your workaround works perfectly in Firefox 33 ! Live demos showing Kris-B's solution:
If you test both solutions on Firefox, you will see the "done" message appearing in the console: too early when NOT using your workaround, & just when expected when using it. Things to note about the tests I have done:
ConclusionUntil the workaround found by Kris-B is fully tested, you're probably "safer" by using imagesLoaded only on newly added images element. |
thanks for your feedback @adrien-be ;-) |
@Kris-B Don't know if it is still an issue for modern browsers, but I would avoid it anyway ;) |
In my application I have to exchange an image constantly with a new one (webcam).
So I have 2 img tags. While one image is shown the other is loaded. As soon the second image is loaded the first one is hidden and the second one is shown. Then again the first one gets a new src= and loads a new image. As soon as it finished it gets shown.
I'm using this plugin to see if the new image is loaded before I hide the first one and show the second one.
the first time an image is loades "imgLoad.on" is fired correctly after the image loading is finished. But when I change the src, its fired immediately without waiting for the new image to be loaded.
This happens with Firefox 26.0 on Linux. Chrome works as it should.
The text was updated successfully, but these errors were encountered: