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 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 - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,025
    Answers
    3976
    Vote Rating
    1334
      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
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

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
  •