Fortunately, CSS selectors have little impact on performance. In this video, learn to focus instead on the size of your CSS file and image files, rather than focusing on execution times of CSS selectors.
- [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. … …
- Targeting classes and IDs
- Working with group selectors
- Targeting element attributes
- Targeting links with pseudo-class selectors
- Targeting child elements and empty elements
- Targeting parent, child, and sibling elements
- Best practices for CSS
- The impact of CSS selectors on performance
Skill Level Intermediate
The power of selectors1m 8s
1. Review of Basic CSS
2. Combinator Selectors
3. Attribute Selectors
Simple attribute selectors2m 47s
4. Pseudo-Classes, Pseudo-Elements, and the Universal Selector
5. Choosing Selectors
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.