Angular · Middle · Question 73 of 75
What is @defer (on viewport; prefetch on idle) for?
- ✓Correct answer: Loading the code when the browser is idle, but rendering the block only when the placeholder enters the viewport
- 2Rendering twice: once idle, once in viewport
- 3Prefetching data for the block on the server
Explanation
Separating prefetch and render triggers makes the block appear instantly when scrolled to, without loading it upfront.