Avoiding a flash of unstyled elements
Complex elements are hidden with CSS until they set the ui-ready attribute after their first render:
ui-select:not([ui-ready]) { visibility: hidden; }
Checklist:
- Load
ui.cssin<head>(render-blocking). - Load
ui.jswithdefer. - Reserve space for tall elements with
min-heightif layout shift matters. - Add the theme prelude from Getting started.