Nuanda / smogmapper

Smog Mapper
http://smogmapper.smogathon.pl/
1 stars 0 forks source link

Assets - investigate bootstrap sprockets js loading #15

Closed Nuanda closed 8 years ago

Nuanda commented 8 years ago

The bootstrap-sass gem is (probably) compiling all BS js code into our app.js. This is rather an overkill - shaving that a bit might save our mobile first-time users some time.

Find an elegant way to do that.

mkasztelnik commented 8 years ago

We currently including bootstrap-sprocket which is simply list of further includes (see https://github.com/twbs/bootstrap-sass/blob/master/assets/javascripts/bootstrap-sprockets.js). To minimize compiled boostrap JS concrete part of the bootstrap JS can be included (only these one which are used) instead of bootstrap-sprocket. Right now most probably: bootstrap/button and bootstrap/tooltip