Skip to content

Commit 0fabf4d

Browse files
gzip all the things, minified stylesheets via YUI
* added .htaccess to enable if gzip in apache if mod_deflates loaded * use build.sh to combine+minify all CSSs into one * included YUIcompressor Overall result: at least 30% smaller size, 1 request unstead of 5
1 parent 8614281 commit 0fabf4d

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

.htaccess

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<IfModule mod_deflate.c>
2+
SetOutputFilter DEFLATE
3+
</IfModule>

TODO

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
* implement functanility to actually push ChaseCar info to habitat
2-
31
* move to Gmaps API3, as API2 is being shutdown in May 2013
42

53
* have a more slick UI in portrait mode for large screen devices
@@ -17,9 +15,6 @@ Optimizations
1715

1816
* minimize footprint
1917

20-
* combine+minify CSSs into a single file
21-
(SimpLESS, compile into a single file+minification)
22-
2318
* combine+minify JS into a single file
2419
(Google Closure? Requires rewritting)
2520

build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
cd css
3+
rm mobile.css
4+
cat base.css skeleton.css layout.css habitat-font.css main.css > mobile.tmp
5+
java -jar "../tools/yuicompressor-2.4.8pre.jar" --type=css mobile.tmp > mobile.css
6+
rm mobile.tmp

0 commit comments

Comments
 (0)