desandro / imagesloaded

:camera: JavaScript is all like "You images done yet or what?"
https://imagesloaded.desandro.com
MIT License
8.87k stars 1.15k forks source link

Images Loaded with HTML5 Video Poster Attribute #197

Open fauxcoding opened 9 years ago

fauxcoding commented 9 years ago

Whilst I can get ImagesLoaded to work for images in img tags, it doesn't seem to detect when HTML5 Video poster images have loaded.

desandro commented 9 years ago

Thanks for reporting this issue. Video poster support is currently not part of imagesLoaded. Add a 👍 reaction to this issue if you would like to see this feature added. Do not add +1 comments — They will be deleted.

fauxcoding commented 9 years ago

+1

If anyone is interested in a workaround I asked/answered a stack overflow question on the matter.

http://stackoverflow.com/questions/30888852/masonry-imagesloaded-html5-video-poster

PascalAOMS commented 7 years ago

Sure, if you or somebody has time to do it/knows the magic.

ballmannweber commented 3 years ago

are there any news on this matter?

haydentech commented 2 years ago

This just bit me as well. Any hope for a fix at this point?

I tried putting a regular img with display:none, in addition to the video with poster img, inside my function getItemHTML function for InfiniteScroll. I had high hopes, but that did not work. Maybe the browser never even tries to load the img if it's display:none.