concept asset host in category css

appears as: n asset host, sset hosts
Sass and Compass in Action

This is an excerpt from Manning's book Sass and Compass in Action.

It seems no slick new CSS feature is without its hacks for Internet Explorer, and @font-face is no different , . But this particular CSS3 feature requires a broad range of font formats to support the most popular browsers , and older versions of some mobile browsers . Though it’s convenient that Font Squirrel provides the CSS along with the font files in their “font kits,” the stylesheet assumes that you’re serving your fonts from the same folder as your stylesheets. If your fonts are located elsewhere (like an asset host as outlined in chapter 7), you’ll need to prepend that path for the url() location of each font in the declaration. Once again, Compass saves your fingers from a lot of typing, allowing you to create the same CSS with less code.

Now that you’ve made your assets as small as possible, you can turn your attention to how these assets are loaded. For instance, did you realize that browsers limit the number of consecutive downloads from a web server? If you’re running a load-balanced website, this should seem conservative to you—certainly you can handle more simultaneous connections than that. And you can, with a little trickery called asset hosts.

Let’s explain what’s going on here. As you learned in the previous chapter, you should be authoring all your assets’ references using Compass’s asset URL helpers. If you’re already following this best practice, then you’re good to go with asset hosts. You still write this: