mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Load extra polyfills when isIntersecting is undefined (#4469)
This commit is contained in:
parent
9b247c3d88
commit
b9ec3b7e7c
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue