Browser & Web Performance · Senior · Question 29 of 75
How should a page react when it is being prerendered via Speculation Rules?
- 1Redirect to a lighter version of the page
- 2Nothing, prerendered pages don't run JavaScript
- ✓Correct answer: Delay analytics and other side effects until activation, checking
document.prerenderingand theprerenderingchangeevent
Explanation
Otherwise page views are counted for pages the user never saw. Many analytics tools already handle this.