title: Theme support for single page application in javascript
body: <p>I would like to add a theme support to my single page application. The requirement is that the theme change must be done locally by javascript (no server calls) to be used in offline mode. I use angularjs, so html will be changed in the router.</p>
  
  <p>The only problem that I have, is how to treat css. Is there any js library to help me load css files? Are there any problems involved in that? </p>
  
  <p><strong>EDIT:</strong> I have found the following library <a href="https://github.com/rgrove/lazyload/" rel="nofollow">https://github.com/rgrove/lazyload/</a> which should do the job of loading css files. The only downside of the library is that the last update of the library is more than one year ago. A more actively developed library would be appreciated.</p>