I build app that will present a lot of icons so I need list of all Font-Awesome class name like
[\"fa-dropbox\",\"fa-rocket\",\"fa-globe\", ....]
so on is ther
Here is a snippet that works based on the loaded css. It assumes you have loaded the stylesheet with a name of font-awesome.css among other things but you could tweak this for your use. Theoretically, this will continue to work as future versions of font-awesome are released and new icons are added. That of course assume he keeps the css consistent over time.
var icons = $.map($.map(document.styleSheets, function(s) {
if(s.href && s.href.endsWith('font-awesome.css'))
return s;
return null;
})[0].rules, function(r) {
if(r.cssText.indexOf('::before { content: ') > 0)
return r.cssText.substring(4,r.cssText.indexOf('::'));
return null; });