Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
cwong15
Posts: 193
Registered: ‎02-27-2009
My Device: Not Specified

Cannot minify bbUI.js

The stock bbUI.js download is uncompressed an relatively big for a mobile library. Has anyone been able to minify this file? My attempts with the usual minifiers, including the online YUI compressor, have failed complaining of syntax errors in bbUI.js.

Please use plain text.
Developer
nunodonato
Posts: 313
Registered: ‎03-28-2012
My Device: Curve 9360, Playbook, BB10 Dev Alpha
My Carrier: TMN

Re: Cannot minify bbUI.js

Hi!

compressing is important in mobile apps when they have to access the files remotely. As WebWorks works locally, it doesn't really make much of a difference.

Nuno
theBBthing.wordpress.com - my BlackBerry development blog: news, tips and tutorials
bitoutsidethebox.com - re-imagining digital solutions


Please use plain text.
Developer
The_Anomaly
Posts: 322
Registered: ‎08-06-2012
My Device: Dev Alpha / Playbook / Curve 9300

Re: Cannot minify bbUI.js

I think I successfully compressed mine using http://jscompress.com/

 

I haven't had errors so far using bbui-0.9.4.js.  I also compressed my CSS using: http://tools.w3clubs.com/cssmin/

 

It drops a few kb.

If it helped you, click like. :smileyhappy:
Please use plain text.