reverting PR #5111 due to perf regression (#5210)

This commit is contained in:
gavin lazar suntop 2019-07-29 12:15:19 -07:00 коммит произвёл punamdahiya
Родитель 06e52ec6a4
Коммит 532a459755
1 изменённых файлов: 1 добавлений и 7 удалений

Просмотреть файл

@ -48,13 +48,7 @@ export class DSImage extends React.PureComponent {
}
componentDidMount() {
this.observer = new IntersectionObserver(this.onSeen.bind(this), {
// Assume an image will be eventually seen if it is within 520px of the viewport
// This is half the average Desktop vertical screen size:
// http://gs.statcounter.com/screen-resolution-stats/desktop/north-america
rootMargin: `540px`,
});
this.observer = new IntersectionObserver(this.onSeen.bind(this));
this.observer.observe(ReactDOM.findDOMNode(this));
}