Cache the window.performance object
nolanlawson opened this issue · comments
Nolan Lawson commented
According to @toddreifsteck this has a non-negligible cost, so it's best to cache.
High-resolution JavaScript timer based on performance.mark/measure (491 bytes min+gz)
nolanlawson opened this issue · comments
According to @toddreifsteck this has a non-negligible cost, so it's best to cache.