1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    pinid is on a distinguished road

      0  

    Default Unanswered: Ext js 4 question regarding performance(minifying)

    Unanswered: Ext js 4 question regarding performance(minifying)


    Hi all,
    I want to perform the following task (as it been proven in other applications I implemented to really get better performance)

    1. Combine in the server side all the js files I need for the current page.
    2. Minify it.
    3. Inject a single js refrence to the page using <script> tag.

    This way i will be able to save all the douzens of js requests to the server.
    How do i perform this in Ext js, Since as far as I know each require statment or each first time loading will look for the file in the app/somedir/ structure.

    Pini

  2. #2
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,118
    Vote Rating
    30
    Answers
    85
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

    Default


    Use SDK tools to minify and bundle your classfiles. Load this package.

    And read this about loading. http://docs.sencha.com/ext-js/4-0/#!/api/Ext.Loader

    I think simply load all your classes at once. Do not use thing as require and stuff.

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    pinid is on a distinguished road

      0  

    Default Can you specify which tool?

    Can you specify which tool?


    Can you specify which tool?

  4. #4
    Ext JS Premium Member tvanzoelen's Avatar
    Join Date
    Apr 2008
    Location
    Groningen - Netherlands
    Posts
    1,118
    Vote Rating
    30
    Answers
    85
    tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about tvanzoelen has a spectacular aura about

      0  

  5. #5
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    pinid is on a distinguished road

      0  

    Default Thanks

    Thanks


    Thanks

Thread Participants: 1

Tags for this Thread