Last active
November 7, 2016 09:44
-
-
Save oliverturner/17cff69fcaee56e87d374ced2c1670ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const timing = performance.timing | |
const navStart = timing.navigationStart | |
const ttfb = timing.responseStart - navStart | |
const dclStart = timing.domContentLoadedEventStart - navStart | |
const dclEnd = timing.domContentLoadedEventEnd - navStart | |
const resources = performance.getEntriesByType('resource') | |
const delayDCL = resources.filter((res) => res.responseEnd < dclStart) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment