Skip to content

NEDNEX

  • Homepage
  • Русский

Category: Web

Split your CSS to @media-related files to improve performance significantly

Screenshot from Chrome DevTools showing improvement of Core Web Vitals after implementing the approach proposed in the article.

When CSS is bundled into one file, even after tree-shaking, it still contains a lot of unused CSS because of different @media contexts (mobile, tablet, desktop, dark/light/other themes, etc.). It’s bad for Core Web Vitals:…

Published 26.10.2022
  • English
  • Русский

Save and Share

NEDNEX © 2023 | Made with love ❤