If I load dojo from Google CDN, I’d like a fallback. The easiest way to
so is by putting a script tage right after it:
But the dojo library should go in your /vendors/assets/ not in your
/public/assets. To get it served, I need to play with the
config.assets.precompile if I understand well. Anyway, it all seem very
hacky too me.
What would you think of being able to do something like that:
=> ‘typeof(dojo) === “undefined”’, :local => ‘local/path/to/dojo’
That way rails take care of putting the extra tag for us with
the test and most importantly, can precompile the file and set the good
What do you think?