System Design · Senior · Question 42 of 75

How can the frontend evaluate feature flags without UI flicker?

Explanation

Loading flags on the client causes a "flash" of the old variant and layout shifts. Server-side evaluation (or bootstrapping values into the HTML) gives a stable first render. Flags are cached and included in the page cache key.

Further reading

Problem with a question

System Design · Senior · question 42

Test yourself

Take the System Design · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz