dinbror / blazy

Hey, be lazy! bLazy.JS is a lightweight pure JavaScript script for lazy loading and multi-serving images. It's working in all modern browsers including IE7+.
http://dinbror.dk/blazy
MIT License
2.63k stars 356 forks source link

Uncaught (in promise) DOMException: The play() request was interrupted by a new load request. #89

Closed TomS- closed 7 years ago

TomS- commented 8 years ago

Error above when lazy loading videos

BenevidesLecontes commented 8 years ago

Chrome based browsers bug. https://productforums.google.com/forum/#!topic/chrome/eFv5wLbFY54 I personally fixed this bug by using http request on my videos and using a promise.

zoodov commented 8 years ago

@BenevidesLecontes Can you show what did you do with http request?

BenevidesLecontes commented 8 years ago

@zoodov I'm using angular 2 and observables. I don't know how to do without observable.

dinbror commented 8 years ago

Hey @TomS-

Sorry about the late reply :( Try to wrap your .play() call in a setTimeout function to ensure it'll be run "last"

dinbror commented 7 years ago

Closing due no activity