Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Jeffrey McCall
745 Points@import vs linking style sheets
What is the advantages of using @import over just linking style sheets? I get that you can import other style sheets to one sheet, but can you not just link an additional style sheet as well. I just do not get the relevance of this. Thanks in advance for any clarification.
2 Answers
James Barnett
39,199 Points
<link>is preferred in all cases over@import, because the latter blocks parallel downloads, meaning that the browser will wait for the imported file to finish downloading before it starts downloading the rest of the content.
Jeffrey McCall
745 PointsOk, thank you for confirming. I thought that would be the answer, but was not sure. It seemed that it was quasi equally effective, but also at the same time, redundant.