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 trialJosh Hicks
14,146 PointsDo Sass partials still create more than one http request?
If they do create one request per @import rule, then is there a way to optimize your css for deployment in actual production version?
4 Answers
Kevin Korte
28,149 PointsNo Sass imports do not. They happen in the precompiler.
You can have a hundred Sass imports in one file, and at the end, you'll get one CSS file, which will only make one request. It's a huge bonus of using Sass.
Víctor Rico
17,808 PointsYou're welcome.
You can organize your project as you wish, a well structured sass project will make things easier whenever you need to change/add something in your project.
Sass @import: http://blog.teamtreehouse.com/tale-front-end-sanity-beware-sass-import
Sass project structure: http://thesassway.com/beginner/how-to-structure-a-sass-project
Víctor Rico
17,808 PointsProjects with a lot of Sass will take longer to compile, keep that in mind. Sass it's being ported to C, so it compiles faster than SASS Ruby. It's called LibSass http://libsass.org/.
Josh Hicks
14,146 Pointswow that's really awesome!! I've been scared to use them until I found this out for sure.
Thanks!