Results 1 to 5 of 5

Thread: Ext js 4 question regarding performance(minifying)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
      0  

    Default 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,147
    Answers
    87
    Vote Rating
    34
      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
      0  

    Default 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,147
    Answers
    87
    Vote Rating
    34
      0  

  5. #5
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
      0  

    Default Thanks

    Thanks

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
  •