documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/jammit/
MIT License
1.16k stars 197 forks source link

Support for head.js #119

Closed hoisie closed 13 years ago

hoisie commented 13 years ago

Having an option to load javascript files with head.js would be great -- it can make the page load faster for users that don't have the asset packages cached.

This is the way I see it: there's an option in include_javascripts like :use_headjs (default to false). If it's set to true, head.js is loaded before any other javascripts in the package, and calls to head.js("files..") are made.

jashkenas commented 13 years ago

I'm afraid we don't want to bless any particular script loader -- there are a bunch out there. And they all should work perfectly well with your JS packages. This is also a duplicate ticket with Issue #146, and we can continue discussion of it over there.