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
    Kolkata, India
    Vote Rating

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

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

    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:
    $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?
    Co-founder & Lead Architect @ Innofied

    I blog at

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    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

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    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