shynet icon indicating copy to clipboard operation
shynet copied to clipboard

Page load time is not accurate when after calling newPageLoad

Open wvffle opened this issue 5 years ago • 1 comments

So basically newPageLoad changes the idempotency, so the same loadTime is registered twice. That way it either lowers the true average time or bumps it up depending on the initial page load.

The problem is, should you count the page load time for newPageLoad as a SPA/PWA page load time (that would require extending the tracking script a bit) or rather don't count it at all for dynamically loaded pages?

Or maybe split it up to First Meaningful Paint and Page Load Time?

wvffle avatar Feb 17 '21 02:02 wvffle

We could just not pass it when newPageLoad is called, and handle null values on the backend. This feels like the 'truest' solution.

milesmcc avatar Feb 17 '21 02:02 milesmcc