View Full Version : Loading icons for web application dynamically (4.1)

2 Jul 2012, 6:50 AM
I have ExtJS application and and I develop it sometimes. I don't want to specify each icon explicitly with CSS because there are too much icons ( http://p.yusukekamiyamane.com/ ), I just want to write the icon's name and go with it. What kind of solution can help me?

2 Jul 2012, 7:12 AM
If you're using SASS/Compass, there are a number of blog posts I've seen about how to automate this process. You can even go a step further and bundle all of your icons into a CSS sprite - which would help with performance.

One example (shameless self promotion :D )
- http://www.akawebdesign.com/2011/01/17/building-css-sprites-with-compasssass/

Just search Google and you'll find a bunch of other (more elegant) posts on the subject.