It is a well established performance best practice for a web page to minimize the number of HTTP requests it makes for assets like images, javascript files and stylesheets. In fact, its Rule #1 on Steve Souders High Performance Web Sites . In the latest version of Rails, these practices are being formalized for javascript and css with the asset pipeline , using the sprockets and sass libraries to combine multiple smaller files into a single unified (and minified) asset file in production mode.

Link:
RubySource: Introducing the Sprite-Factory Gem

Tags: gems
Senior Software Engineer at liquidplanner.com, building the best online project management application during the day, and experimenting with HTML5 games by night!

No Reader comments

Special Offer
Free course!

Git into it! Bonus course Introduction to Git is yours when you take up a free 14 day SitePoint Premium trial.