13297 shaares
331 private links
331 private links
CSS Optimization: Is Using Declarations Just Once (UDJO) Still Effective Today? · Jens Oliver Meiert
The technique is to use:
.example,
.sample {
display: flex;
}
instead of
.example {
display: flex;
}
.sample {
display: flex;
}
Gaining 1-3% on the bundle size is few IMHO. The tool to make it happen is available at https://github.com/j9t/css-dedup