diaspora/diaspora — pull request #4039 by juanazam (2013-03-05 13:52:50+00:00)
Title: Add Sprites to Diaspora!

Hello,

My name is Juan Manuel Azambuja, and I have been converting every image tag on diaspora to user sprites. The motivation behind this is to make diaspora feel as fast as possible on the client side. Using Google Page Speed on the current release, the add-on suggest to combine images in sprites as High Priority. You can check this out by adding the add-on and measuring the joindiaspora (https://www.joindiaspora.com) pod. This changes are one of the results of my final thesis to get my engineering degree, but I found it may be useful for everyone, since sprites are good practice on web development. I tried to keep the look and feel as exact as possible, but there are some little differences.

The sprites were done using the compass gem, which is pretty straight forward to use, you can take a look over here http://compass-style.org/. To make the sprites available on production, here is a quick guide http://compass-style.org/help/tutorials/production-css/, I will have to do it myself for my testing purpose pod.

I am more that willing to take suggestions and adapt my changes if you feel this is worth the work.

Hope you like it, it took some work...

Cheers!

Juan.