I'm successfully using assets pipeline for months.
Now I would like to load some of my JS files asynchronously (using yepnope library). It works well when config.assets.debug
is false
.
But in development mode (where config.assets.debug
is usually true
), the best option for me would be to dynamically get a list of all js files included in my manifests (I got 2 manifests: application.js and externals.js) to give them to yepnope for async loading.
Any idea to do so?