# CSS Optimization: Is Using Declarations Just Once (UDJO) Still Effective Today?

DevFeed: [CSS Optimization: Is Using Declarations Just Once (UDJO) Still Effective Today?](<https://devfeed.tech/articles/css-optimization-is-using-declarations-just-once-udjo-still-effective-today-129310.md>)

Original publisher: [Read original article](<https://css-tricks.com/css-using-declarations-just-once/>)

Author: Jens Oliver Meiert

Published: 2026-11-10T16:42:18Z

Content type: article

Language: en

Sources: [CSS-Tricks](<https://devfeed.tech/sources/css-tricks.md>)

Topics: [performance-optimization](<https://devfeed.tech/topics/performance-optimization.md>), [CSS](<https://devfeed.tech/topics/css.md>), [Front end](<https://devfeed.tech/topics/frontend.md>)

Tags: [articles](<https://devfeed.tech/tags/articles.md>), [css](<https://devfeed.tech/tags/css.md>), [dry](<https://devfeed.tech/tags/dry.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [selectors](<https://devfeed.tech/tags/selectors.md>)

## AI overview

UDJO can reduce CSS declaration repetition, but deduplication does not automatically shrink files. In the article's samples, CSS Dedup found safe repetition to remove on every site; reducing it increased file size in 18 of 20 general sites and 5 of 10 web professional sites, while selectively deduplicating cases that saved bytes reduced file size in all sampled cases. Results depend on selector length and whether combining selectors remains maintainable. The analysis measured file-size changes before compression, so it does not establish savings after gzip or Brotli. The author concludes UDJO remains useful when tooling is configured to make safe, size-reducing changes, while noting that broader sampling and compression testing would be valuable.

## Source excerpt

Is the technique inspired by the DRY principle by identifying and reducing (if not eliminating) CSS declaration repetition still a relevant optimization strategy? CSS Optimization: Is Using Declarations Just Once (UDJO) Still Effective Today? originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well.