HTML & CSS · Senior · Question 74 of 75
Why avoid @import inside plain CSS files?
- ✓Correct answer: Each import is discovered only after the parent file downloads, creating a chain of render-blocking requests
- 2
@importis not supported by browsers - 3It disables the cascade
Explanation
Use <link> tags or a bundler that inlines imports at build time. In Sass, @use is compiled away, so this doesn't apply to it.