Results 1 to 2 of 2

Thread: App file size issue - crashes in BB Torch

  1. #1
    Sencha User swarnendude's Avatar
    Join Date
    Jul 2009
    Location
    Kolkata, India
    Posts
    117
    Answers
    1
    Vote Rating
    1
      0  

    Default Unanswered: App file size issue - crashes in BB Torch

    I have developed a small Sencha Touch 2.0 app. Here is the url:

    http://apps.swarnendude.com/sencha/i...com/sencha/gts

    The app works in perfectly fine in Android 2.3, iPad, iPhone, Blackberry Playbook. But the app crashes while I test in Blackberry Torch (OS: 6.0) giving this error:

    "The page you requested could not be loaded. It is too large for this device"

    The production version of the file sizes are:

    sencha-touch.js: 90.5Kb
    app-all.js: 401.4Kb
    app-all.css: 151.5Kb
    Other resources: 10Kb

    SASS config:
    Code:
    $body-bg-color: #000;
     
    $base-color: #444;
    $base-gradient: 'matte';
    $active-color: #4596CE;
     
    @import 'sencha-touch/default/all';
    
    @include sencha-panel;
    @include sencha-buttons;
    @include sencha-toolbar;
    @include sencha-list;
    @include sencha-list-paging;
    @include sencha-layout;
    @include sencha-form;
    @include sencha-msgbox;
    @include sencha-loading-spinner;
    @include sencha-picker;
    
    .x-toolbar .x-toolbar-title {
        color: saturate(lighten($active-color, 10%), 20%);
        text-shadow: rgba(#fff, .8) 0 1px 20px;
    }
    So, total around 650Kb. I think the sizes can be reduced more but I am not getting any other options. I am using the least css configs in SASS file and in JS too (only which are required). Is there anyone getting the same problem? Any solution?
    Swarnendu
    Co-founder & Lead Architect @ Innofied

    ------------------
    I blog at http://www.swarnendude.com

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,335
    Answers
    3885
    Vote Rating
    1296
      0  

    Default

    For the JS files, the build will only include the classes you need (unless you are using sencha-touch-all.js). For the SASS, you should only @include for the classes you are using which looks like you are doing. Past that, not much you can do.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •