[CLOSED] resource manager and limiting extjs file size

  1. #1

    [CLOSED] resource manager and limiting extjs file size

    for our home page, we are only using a few Extjs items. Yet, the full extjs-all is being loaded. Is there a way to limit this so it only loads something when it needs it. EXTJS is almost as bad as YUI in size.

    Does the resource manager gzip the content or do anything special?
    Last edited by Daniil; Apr 01, 2011 at 12:33 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Ext.Net doesn't support loading by request (ext-all.js is always used)

    Theoretically, you can modify ext-all.js file as you need (cut all none required), then add modified your file to application and use RenderScripts="File" in ResourceManager

    In the ExtJS repository folder you can find ext.jsb2 file. You can use that file with JSBuilder to build own ExtJS library
    http://www.sencha.com/products/jsbuilder

    Does the resource manager gzip the content or do anything special?
    Yes, by default, Ext.Net resource handler (if register it and don't deactivate by CleanResourceUrl option) gzip content (compressed size of ext-all.js is aprx 200kb) and set cache instructions for response (browser will not request ExtJS resource for the page)
  3. #3
    Great thanks!

    then add modified your file to application and use RenderScripts="File" in ResourceManager
    what does this do?
  4. #4
    Hi,

    RenderScripts="File" attaches resource files from a defined folder instead web resources (uses with ResourcePath property)
  5. #5
    does it minify, concatenate, and cache?

    Or does it just load all files in a directory?
  6. #6
    Hi,

    does it minify, concatenate, and cache?
    What do you mean? Are you about JSBuilder?
  7. #7
    you said attaches resource files from a folder. Are you not talking about CSS and javascript? I don't understand your last remark.
  8. #8
    Hi,

    By default, Ext.Net generates ext.axd resources links (request through Ext.Net http handler), like
    <script type="text/javascript" src="/extjs/adapter/ext/ext-base-js/ext.axd?v=17207"></script> 
    <script type="text/javascript" src="/extjs/ext-all-js/ext.axd?v=17207"></script>
    Ext.Net handler can compress and cache resources

    If you set RenderScripts="File" then Ext.Net will generate links on real files from ResourcePath folder (default "~/Ext.Net/"), like
    <script type="text/javascript" src="/Ext.Net/extjs/adapter/ext/ext-base-debug.js"></script>
    <script type="text/javascript" src="/Ext.Net/extjs/ext-all-debug.js"></script>
    In this case, there is no automatic compression or caching (but you can use third party solutiuons to compress and cache static files)

    Also, you can set RenderScripts="None", in this case you have to add all required scripts manually to the page
    Also, there is the same option for styles, RenderStyles
  9. #9
    Hi Vladimir

    Instead Of adding ext js paths within each page how to use resourcePath of web.config of ext tag ?
  10. #10
    Quote Originally Posted by Daly_AF View Post
    Hi Vladimir

    Instead Of adding ext js paths within each page how to use resourcePath of web.config of ext tag ?
    It would be best to start a new thread as this thread has been [CLOSED].

    If you feel two (or more) threads are related, please feel free to cross link between them by adding a link to a simple follow-up post.
    Geoffrey McGill
    Founder

Similar Threads

  1. Replies: 1
    Last Post: Mar 07, 2012, 8:57 PM
  2. [CLOSED] What is the Resource Manager and how do I use it?
    By jwf in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Aug 29, 2011, 6:46 PM
  3. Script Manager and Resource Manager Conflict
    By EugeneNiemand in forum 1.x Help
    Replies: 6
    Last Post: Jun 20, 2011, 7:34 AM
  4. Replies: 5
    Last Post: Oct 26, 2010, 2:20 PM
  5. Replies: 4
    Last Post: Sep 22, 2010, 7:43 AM

Tags for this Thread

Posting Permissions