From 1817e12c159e11ca71aaeb64f61bd7054d7658f2 Mon Sep 17 00:00:00 2001 From: Cameron Behdani Date: Thu, 21 Feb 2019 01:00:49 -0500 Subject: [PATCH] Added additional improve CSS performance tip (#32930) --- guide/english/css/css-performance/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/guide/english/css/css-performance/index.md b/guide/english/css/css-performance/index.md index 0d660c0d40..b08732750d 100644 --- a/guide/english/css/css-performance/index.md +++ b/guide/english/css/css-performance/index.md @@ -32,6 +32,7 @@ As a rule of thumb: * Don't shy away from using a lot of descriptive class names `.footer-nav-link` * Try to use the child selector instead if you want to select a direct child of an element `.image-container > img` * Avoid using universal selectors `* { }` +* Remove unnecessary white spaces and consider minifying your CSS ### Is this really all necessary? This may have been a problem 20 years ago when computers weren't as fast as they are today. Please don't avoid descendant selectors in the future completely. But keep in mind that your goal is to write maintainable CSS, so a little thinking might be appropriate.