Our application JS is bloated with minified libraries, while our actual
application Javascript barely amounts to more than two hundred lines.
I propose removing these libraries from our sass file, and instead
load them as separate resources in `<link>` and `<script>` tags.
This has several advantages:
- By using common CDNs, users are likely to have many of these libraries
cached already.
- Even if the files aren't cached, the CDN is likely to deliver them
faster.
- We can use the HTML5 'async' attribute to load these libraries
asynchronously, so users aren't held up while they download.
- Our fully compiled application JS is much, much smaller, which
reduces the load on our host.
Also, on the topic of load times, I realized that in #152 that one of the
images was a PNG, not a JPG. I had tried optimizing the image, but I didn't
realize that it wasn't a JPG like the others. Here, I converted it to a JPG,
and it is significantly smaller, and it is visually unchanged.
I'm having some difficulty testing on my local machine, so I would appreciate
some additional manual testing before merging this.
commit 98cce1cece
Author: Andrew Brown <drusepth@gmail.com>
Date: Tue Jan 7 22:32:13 2014 +0000
precompile assets
commit 5d8ee6b0b9
Author: Andrew Brown <drusepth@gmail.com>
Date: Tue Jan 7 22:30:10 2014 +0000
show map on location page
commit 0bbbf65be6
Author: Andrew Brown <drusepth@gmail.com>
Date: Tue Jan 7 22:18:43 2014 +0000
upload + read works oh god that took long enough
commit 8ca38110d3
Author: Andrew Brown <drusepth@gmail.com>
Date: Tue Jan 7 19:48:23 2014 +0000
halve the number of transformations needed on map uploads
commit 866ad0f32c
Author: Andrew Brown <drusepth@gmail.com>
Date: Tue Jan 7 19:48:03 2014 +0000
add aws credentials to dev environment
commit f55dc796fa
Author: Andrew Brown <drusepth@gmail.com>
Date: Tue Jan 7 19:34:20 2014 +0000
imagemagick gem for image resizing
commit 666e7ac260
Author: Andrew Brown <drusepth@gmail.com>
Date: Tue Jan 7 19:18:55 2014 +0000
add dev s3 bucket for testing
commit 9984a475e8
Author: Andrew Brown <drusepth@gmail.com>
Date: Tue Jan 7 19:17:45 2014 +0000
add upload form to locations#new
commit 72ed656e82
Author: Andrew Brown <drusepth@gmail.com>
Date: Tue Jan 7 19:05:25 2014 +0000
use mongoid-paperclip instead of paperclip
commit 01204e1443
Author: Andrew Brown <drusepth@gmail.com>
Date: Tue Jan 7 19:00:38 2014 +0000
add attached_file property to location model
commit 3097be4a5a
Author: Andrew Brown <drusepth@gmail.com>
Date: Tue Jan 7 18:58:25 2014 +0000
set paperclip aws config