Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ install
Function
install
src/polyfills/intersection-observer.js:19–24 ·
view source on GitHub ↗
(win)
Source
from the content-addressed store, hash-verified
17
* @param {!Window} win
18
*/
19
export
function
install(win) {
20
if
(shouldLoadPolyfill(win)) {
21
installStub(win);
22
}
23
fixEntry(win);
24
}
25
26
/**
27
* @param {!Window} parentWin
Callers
1
test-intersection-observer.js
File · 0.90
Calls
3
shouldLoadPolyfill
Function · 0.90
installStub
Function · 0.90
fixEntry
Function · 0.85
Tested by
no test coverage detected