Комментарии:
any chat on the accessibility?
ОтветитьJust a short question on your style of coding: Was it on purpose, that you add the "js-lazy-image--handled" class in line 86 of lazy-load-images.js via text and not by using LazyLoadImages.HANDLED_CLASS ?
In my opinion it would be more elegant and future-proof to use the attribute you already created for this use.
y not just unobserve the entries once the IO callback is called?? Then maybe we won't need the tagged class thingy?? just thinking out loud...
ОтветитьHey, why don't you use the `unobserve` method to stop observing loaded images?
ОтветитьDo you add the src to a data-src attribute or something or do you unset the src attribute before the images have loaded? I have always been put of lazy loading images because they require the user to have JavaScript on. Have you got a work around for this?
ОтветитьNice :)
Can you please give a proper title to each video for it will be easier to find it later? for example the current title doesn't even have anything to do with this video.
will be so nice when stuff like this can be bundled into a reusable Web Component…
Ответить@Paul, Would you suggest using the IntersectionObserver polyfill from WICG? or rather stick to a custom scroll event handler for this use case?
ОтветитьWhat are the underscores from? Are you using underscore library?
ОтветитьPLAYYYYERR NIIIINNEEE
ОтветитьDoes anyone know if the IntersectionObserver API can be applied to iFrames and embeded videos?
ОтветитьThis is awesome! How do I lazy load with dominant color?
Ответить