opentechinstitute/commotion-openwrt-theme — pull request #3 by westbywest (2013-05-06 17:53:02+00:00)
Title: Remove Asap fonts and jquery

A difficulty I've encountered in squeezing things onto finite flash chips, especially with recent integration of large packages like Serval, is that the Commotion theme is really rather large. Indeed, 10x larger than the stock themes provided with OpenWRT:

ben@computer:~/blahblah/openwrt/bin/ar71xx/packages$ ls -l *theme*
-rw-r--r-- 1 ben ben 24940 May 5 16:25 luci-theme-base_0.11.1-1_ar71xx.ipk
-rw-r--r-- 1 ben ben 13649 May 5 16:25 luci-theme-bootstrap_0.11.1-1_ar71xx.ipk
-rw-r--r-- 1 ben ben 314206 May 5 16:25 luci-theme-commotion_master-1_ar71xx.ipk
-rw-r--r-- 1 ben ben 7951 May 5 16:25 luci-theme-openwrt_0.11.1-1_ar71xx.ipk

Jumping into the theme's internals, it looks like the lion's share (440kbytes, or 60% of overall ipk) comes from fronts:

ben@computer:~/blahblah/openwrt/build_dir/target-mips_r2_uClibc-0.9.33.2/luci-theme-commotion-master/files/htdocs$ du -s -h *
4.0K advanced.png
32K cascade.css
4.0K commotion_tiny.png
4.0K dashboard.css
4.0K favicon.ico
440K fonts
4.0K help.png
4.0K html5.js
4.0K ie6.css
4.0K ie7.css
92K jquery.min.js
4.0K quickstart.png
4.0K respond.min.js
4.0K selectnav.min.js
4.0K status_message_smile.png
4.0K theme.js
4.0K warning_icon.png
24K zepto.min.js

I'm submitting a trimmed-down theme in this pull request, with font files and jquery removed. The theme seems to work on a node that I just flashed with freshly compiled Commotion. That is, there are letters, colors, images, and functional buttons in the Quickstart UI. Also, theme ipk size reduced more than 10x, down to ~32kbytes.