CodeZettaInterview Hub

Angular · Performance · Senior · Concept

What is @defer and when do you use it?

Short Interview Answer

Defers loading a template block until a trigger (idle, viewport, interaction), reducing initial work.

Detailed Explanation

Great for below-the-fold widgets. Provide @placeholder/@loading/@error. Don't defer critical above-the-fold UI.

Did you know this answer?