Open ziyunfei opened 8 years ago
This is a good test case. I think this might be a v2 feature. The current behavior optimizes for not lazy loading things that are clipped. Also, the current behavior is what you'd want if building an infinite scroller.
So, for v2, we could add something like "clipMargin" that expands all clip regions.
Recently I'm trying to use the
IntersectionObserver
API to lazy load images/contents instead of the old LazyLoad plugin in our website (taobao.com
), and I failed, twice, all because therootMarin
option didn't work in some cases. I made two demos to illustrate the problem:So I think the spec should change, but I don't know how.