I just added this to the api viewer output as well, with even better results:
api/script/apidata.js: 91.1% -- replaced with api/script/apidata.js.gz
api/script/apiviewer.js: 80.4% -- replaced with api/script/apiviewer.js.
gz
Our api viewer data is 115 KB, and the script is 88 KB.
For 0.6.4, for build and api, add this to the end of the makefile. Watch
linewrap in the cp, gzip and mv commands:
build:
@echo
@echo " GZIP BUILD SCRIPT"
@echo
"----------------------------------------------------------------------"
@echo " * Create copy"
cp build/script/$(APPLICATION_NAMESPACE).js
build/script/$(APPLICATION_NAMESPACE).copy
@echo " * gzip script"
gzip --verbose --best --force build/script/$(APPLICATION_NAMESPACE).js
@echo " * Rename copy to create <script>.js and <script>.js.gz"
mv build/script/$(APPLICATION_NAMESPACE).copy
build/script/$(APPLICATION_NAMESPACE).js
api:
@echo
@echo " GZIP API SCRIPT AND DATA"
@echo
"-------------------------------------------------------------------"
cp api/script/apidata.js api/script/apidata.copy
gzip --verbose --best --force api/script/apidata.js
mv api/script/apidata.copy api/script/apidata.js
cp api/script/apiviewer.js api/script/apiviewer.copy
gzip --verbose --best --force api/script/apiviewer.js
mv api/script/apiviewer.copy api/script/apiviewer.js
Hugh
> Not sure if you're already doing this, but I modified our makefile to
> automatically build compressed build scripts using gzip. Our server
> (hand-crafted in Python) automatically supplies the .gz file if the
> browser supports it.
>
> I mention it because we get 80% compression, which will obviously
> make a huge difference to the time taken to download the online demos
> and the api script/data file.
>
> It's a very easy step to take and can make a large difference to the
> perception of qooxdoo. Certainly when we were initially evaluating
> various JS libraries the time taken to load the script(s) was
> important in our considerations.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel