Load extra polyfills when isIntersecting is undefined (#4469)

This commit is contained in:
Yamagishi Kazutoshi authored and Eugen Rochko committed 2017-07-31 19:40:20 +02:00
1 parent 9b247c3d88
commit b9ec3b7e7c
1 file changed
+2
@@ -24,6 +24,8 @@ function loadPolyfills() {
// This avoids shipping them all the polyfills.
const needsExtraPolyfills = !(
window.IntersectionObserver &&
window.IntersectionObserverEntry &&
'isIntersecting' in IntersectionObserverEntry.prototype &&
window.requestIdleCallback &&
'object-fit' in (new Image()).style
);