瀏覽代碼

Load extra polyfills when isIntersecting is undefined (#4469)

master
Yamagishi Kazutoshi 6 年之前
committed by Eugen Rochko
父節點
當前提交
b9ec3b7e7c
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      app/javascript/mastodon/load_polyfills.js

+ 2
- 0
app/javascript/mastodon/load_polyfills.js 查看文件

@@ -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…
取消
儲存