From the course: CSS: Selectors

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Impact of CSS selectors on performance

Impact of CSS selectors on performance - CSS Tutorial

From the course: CSS: Selectors

Start my 1-month free trial

Impact of CSS selectors on performance

- [Instructor] Finally, you might be wondering about the impact of selectors on performance of your website. There has been some discussion online about how a complicated selector might slow down the performance of your webpage. Fortunately, I'm happy to say that the consensus among those who optimize sites for performance is that CSS selectors aren't really something to worry that much about. The size of your CSS file and its load time is a much greater cause for concern than the execution time of each selector. If you hear about CSS selector performance as a reason to go with all classes in your styling, this is often an excuse for not understanding some of the different types of selectors or how to read them. Encourage your colleague to watch this course so they can come up to speed with the latest selectors.

Contents