Baseframe and Eventframe changes

5 views
Skip to first unread message

Kiran Jonnalagadda

unread,
Feb 7, 2013, 7:17:14 PM2/7/13
to hasgee...@googlegroups.com
Hi all,

Been a while since I've posted an update to this list.

I've switched from JSMin to Google's Closure compressor for JS asset minification. You will need to `pip install closure` to get the compressor, and will need Java to run it. (This also means we now have Java on the production server.)

JSMin is proving to be unreliable -- it can no longer compress jQuery.

I also tried UglifyJS but couldn't get it to work with webassets. UglifyJS's compression is nearly as good as Google Closure, but runs much faster and is smarter at handling tricky code. Fortunately, speed is not a criteria since we rebuild JS assets only once every few months.

The switch to Closure affects Baseframe and Eventframe and anything using these two.

Eventframe has also been updated for Flask-Assets 0.8, which changes the way it tries to locate static files. Flask-Assets doesn't know how to find static files in Flask-Themes and Eventframe contains code to bridge the two.

I intend to rewrite Eventframe substantially based on what we've learnt from ~9 months using it, but this will be after other pending changes to Lastuser.

Best,
Kiran

-- 
Kiran Jonnalagadda

Reply all
Reply to author
Forward
0 new messages