Sign in
webkit
/
WebKit
/
3e01ea2c6e60dac71bbc2366692c12538bc3430c
/
.
/
LayoutTests
/
performance-api
/
paint-timing
/
resources
/
paint-api-utils.js
blob: 5a7ceef49418db6455c6c1f1564a64f81697683c [
file
] [
log
] [
blame
]
async
function
waitForFCP
()
{
await
new
Promise
(
resolve
=>
requestAnimationFrame
(()
=>
resolve
()));
return
window
.
performance
.
getEntriesByName
(
'first-contentful-paint'
).
length
==
1
;
}