What would be the primary reason to avoid excessive nesting in SASS or SCSS?
- Excessive nesting can lead to increased file size
- It helps with better code organization
- It improves the performance of stylesheets
- It is a recommended best practice
Excessive nesting in SASS or SCSS can lead to bloated and inefficient CSS files, which are larger in size. This negatively impacts loading times and page performance. It is advisable to avoid deep nesting to keep the stylesheet lean and maintainable.
Loading...
Related Quiz
- How can you use media queries to target devices with retina displays specifically?
- Animating properties like opacity and transform is considered more performant because they don't trigger ________ in most browsers.
- How do you position an item in the third row and second column of a grid?
- You have a CSS variable named --gap, and you want to double its value and use it as a margin. How would you achieve this using CSS functions?
- To run animations in reverse order after they complete, the value for animation-direction should be ________.