mohamedmansour / hackathon-letsgo.io

letsgo.io - Photo Hack Day 4 project
http://letsgo.io
5 stars 6 forks source link

Use gruntjs to create a build script to minify JavaScript to improve perf #41

Open mohamedmansour opened 11 years ago

mohamedmansour commented 11 years ago

We should be crunching JavaScript files, and cleanup CSS files

http://gruntjs.com/ for those who don't know

justinormont commented 11 years ago

I'd like to separate the .js files further to increase maintainability, and ease merges. Hopefully the cruncher can merge these in to the served HTML directly.

mohamedmansour commented 11 years ago

Yea, the server side code is nicely separated. We need the same for client side. WE should be using grunt.js for the build system.

mohamedmansour commented 11 years ago

93cb3d02793d994bed33cb4497ca48ba6674db2c

mohamedmansour commented 11 years ago

CSS Minifier (50% reduction)

-rw-r--r--    1 Mohamed  Administ    16532 Apr 18 00:58 letsgo.io.css
-rw-r--r--    1 Mohamed  Administ     8344 Apr 18 00:58 letsgo.io.min

JS Minifier (40% reduction)

-rw-r--r--    1 Mohamed  Administ    23439 Apr 18 00:58 letsgo.io.js
-rw-r--r--    1 Mohamed  Administ    14277 Apr 18 00:58 letsgo.io.min.js