
CSS-Tricks · 5 min readCSS & layout
CSS Optimization: Is Using Declarations Just Once (UDJO) Still Effective Today?
UDJO, a 18‑year‑old CSS deduplication technique, is still useful today. By merging identical declarations across selectors, it can improve maintainability and, when applied carefully, reduce file size. The article presents tooling and empirical data from 20 sites, showing that safe deduplication often yields measurable savings.
- Use a tool like CSS Dedup to find and merge identical declarations across selectors.
- Configure the tool to only deduplicate when it reduces file size, avoiding selector bloat.
- Shorter selectors increase the likelihood of net size savings when applying UDJO.