[Commotion-dev] How to file issue on Commotion-OpenWRT luci theme - really really big font files

Dan Staples danstaples at opentechinstitute.org
Mon May 6 14:13:19 UTC 2013


I believe I just fixed the issue submission, so try again and see if 
that works. I think it makes a lot of sense to trim down the luci 
theme. Our OpenWRT images have gone up 2MB since the last release, so 
stripping out unnecessary items is a great idea. I was also surprised 
it had a minified jQuery, which is still quite large. And why would we 
need both jQuery and Zepto? I don't think we have any javascript in the 
theme or elsewhere that requires jQuery. Zepto should do just fine...

On Sun 05 May 2013 09:52:44 PM EDT, Ben West wrote:
> Hi All,
>
> This is the current repo for the luci-commotion-theme used for the
> luci web UI packaged into Commotion-OpenWRT (forked from a repo
> started by Ben Chodoroff):
> https://github.com/opentechinstitute/commotion-openwrt-theme
>
> 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 at 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 at 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
>
> Is the use of the Asap font critical to UX or HID design elements?
> Could the CSS be edited to instead use whatever built-in sens-serif
> font the user's browser supplies?
>
> Also, the repo for the Commotion theme isn't set up to accept issue
> submissions from the public.  May I be added to the access list to
> submit an issue (evtl followed up with pull request) about slimming
> this theme down in size?
>
> Thanks.
>
> --
> Ben West
> http://gowasabi.net
> ben at gowasabi.net <mailto:ben at gowasabi.net>
> 314-246-9434
>
>
> _______________________________________________
> Commotion-dev mailing list
> Commotion-dev at lists.chambana.net
> https://lists.chambana.net/mailman/listinfo/commotion-dev

--
Dan Staples

Open Technology Institute
https://commotionwireless.net


More information about the Commotion-dev mailing list