02-21-2013 09:49 AM
I ran into an interesting issue last night - I minified my JS using the Google Closure compiler, and packaged the app with webworks into a playbook app and loaded that onto my tablet for testing. The web inspector showed that the minified JS file was there, but the content was blank. Is there some size limit for the JS file? The minified JS contained all my various JS files into one, for loading optimization.
Help is appreciated,
02-25-2013 07:21 PM
02-26-2013 08:03 AM
My suspicion is that the JS file is blank in the bar file, however I'm unsure of the cause... I used the Closure Compiler, but if there's another JS minifier that works well with blackberries, please let me know!
Also, the minified JS works fine when I'm accessing it through the browser, which really confused me. Perhaps something happens to the JS when being packaged into a Bar file?
02-26-2013 08:37 AM
Just unzip the bar file and you'll know right away
Closure is quite picky and you need well documented code to make it work at level 2.
Having said that, you might simply have a missing semicolon or an extra comma which doesn't break your browser, but breaks minification.
Load your files in a parser or IDE and you should see right away where the problem lies.