Comcast / Surf-N-Perf

Micro-library for gathering web page performance data
http://comcast.github.io/Surf-N-Perf/
MIT License
90 stars 20 forks source link

add getFirstContentfulPaint() #80

Closed JohnRiv closed 4 years ago

JohnRiv commented 4 years ago

should behave similar to getFirstPaint() with the "first-contentful-paint" name instead of "first-paint"

See https://developer.mozilla.org/en-US/docs/Web/API/PerformancePaintTiming for docs

mkamranhamid commented 4 years ago

In surfnperf.js file whenever getFirstPaint function is called you want to lookup for first-contentful-paint rather first-paint(which is a current behaviour), right?

JohnRiv commented 4 years ago

closed via #85