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

CSS Sass Basics (retired) Speeding up Workflow with Sass Importing Files

Do 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
Kevin Korte
28,149 Points

No 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
Víctor Rico
17,808 Points

You'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.

Víctor Rico
Víctor Rico
17,808 Points

Projects 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/.

wow that's really awesome!! I've been scared to use them until I found this out for sure.
Thanks!