designcourse
designcourse copied to clipboard
💡 Prerendering support
When implementing the Speculation Rules API and prerendering a page, Datadog RUM timings for the page (specifically LCP and FCP) are from when the prerender started on the referring page, rather than activation.
This means prerendering causes an increase in timings that doesn't reflect the user experience, which is improved (sometimes dramatically) by prerendering.
Note that the web-vitals library handles prerenders by timing from activation start, as implemented in this changeset.
Hi @cole, Thank you for pointing out this issue with the Speculatation Rules API. We're planning to look into this issue.