Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ onDisplay
Function
onDisplay
src/utils/display-observer.js:68–71 ·
view source on GitHub ↗
(display)
Source
from the content-addressed store, hash-verified
66
const
observer = getObserver(target);
67
return
new
Promise((resolve) => {
68
const
onDisplay = (display) => {
69
resolve(display);
70
observer.unobserve(target, onDisplay);
71
};
72
observer.observe(target, onDisplay);
73
});
74
}
Callers
nothing calls this directly
Calls
2
resolve
Function · 0.50
unobserve
Method · 0.45
Tested by
no test coverage detected