mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-02-14 14:43:50 -05:00
Load extra polyfills when isIntersecting is undefined (#4469)
This commit is contained in:
parent
9b247c3d88
commit
b9ec3b7e7c
@ -24,6 +24,8 @@ function loadPolyfills() {
|
|||||||
// This avoids shipping them all the polyfills.
|
// This avoids shipping them all the polyfills.
|
||||||
const needsExtraPolyfills = !(
|
const needsExtraPolyfills = !(
|
||||||
window.IntersectionObserver &&
|
window.IntersectionObserver &&
|
||||||
|
window.IntersectionObserverEntry &&
|
||||||
|
'isIntersecting' in IntersectionObserverEntry.prototype &&
|
||||||
window.requestIdleCallback &&
|
window.requestIdleCallback &&
|
||||||
'object-fit' in (new Image()).style
|
'object-fit' in (new Image()).style
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user