Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: About size

  1. #1
    Sencha User Mycoding's Avatar
    Join Date
    May 2010
    Location
    Russia, Volgograd
    Posts
    460

    Default About size

    I mentioned that in examples of ExtJS size is about 200 kb.
    How come?
    My code is about 800 kb.
    Could you be so kind to learn me so minimaze code.
    The matter is so taht when I tell ExtJS is about 800kb my employee tell me NO.

  2. #2
    Sencha Premium User mankz's Avatar
    Join Date
    Nov 2007
    Location
    Stockholm, Sweden
    Posts
    3,153

    Default

    This is ext-all-debug.js (readable) vs. ext-all.js (compressed). You can get it even smaller by using GZIP.

  3. #3
    Sencha User Mycoding's Avatar
    Join Date
    May 2010
    Location
    Russia, Volgograd
    Posts
    460

    Default

    Thanks.
    But I use ext-all.js and that is over 661 kb.

  4. #4
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    What about when your HTTP server GZIPs it?

  5. #5
    Sencha User Mycoding's Avatar
    Join Date
    May 2010
    Location
    Russia, Volgograd
    Posts
    460

    Default

    I already tried to unstand about gzip but didn't.
    If I write something wrong please forgive me I don't understand all right because I'm not good
    at English.

  6. #6
    Sencha User chrizmaster's Avatar
    Join Date
    Feb 2009
    Location
    Australia
    Posts
    441

    Default

    Maybe extjs uses the function, they provide when you want to download the framework... you can choose which kind of feature you want to have. If you don't need all of them, you could delete it and so it will be smaller...

  7. #7
    Sencha User Mycoding's Avatar
    Join Date
    May 2010
    Location
    Russia, Volgograd
    Posts
    460

    Default

    Excuse me for again question, but I still do not understand how come.

    For example at this page http://dev.sencha.com/deploy/dev/docs/
    ext-all.css is 21 KB
    xtheme-gray.css is 5.7 KB
    ext-base.js is 12.2 KB
    ext-all.js is 181.8 KB


    How is it come?
    I did't see any notice of gzip or somethig like this.
    You know when my emploeer knows that I am going to include over 800 KB most of them refused.
    Please help me understand how I should inlude ExtJS right that size will be so little.

  8. #8
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,890

    Default

    gzip See Content-Encoding header in response:


  9. #9
    Sencha User Mycoding's Avatar
    Join Date
    May 2010
    Location
    Russia, Volgograd
    Posts
    460

    Default

    Thanks I understand it.
    I look at this in Chrome.
    But in Firebug I didn't find it.

    SO I should learn how to use gzip.
    But is it possible to use ways
    like this
    <link rel="stylesheet" type="text/css" href="http://dev.sencha.com/deploy/dev/docs/resources/css/ext-all.css" />
    <script type="text/javascript" src="http://dev.sencha.com/deploy/dev/docs/resources/ext-base.js"></script>
    <script type="text/javascript" src="http://dev.sencha.com/deploy/dev/docs/resources/ext-all.js"></script>

    That don't care about gzip.
    Cause I don't undestand how to use start use gzip on server.

  10. #10
    Sencha User Mycoding's Avatar
    Join Date
    May 2010
    Location
    Russia, Volgograd
    Posts
    460

    Default

    I learned ))))
    PHP Code:
    <?php
        ob_start
    ("ob_gzhandler");
    ?>
    Thanks to all.

Page 1 of 2 12 LastLast

Similar Threads

  1. report on panel size when viewport changes size
    By ext.Will in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 24 Aug 2009, 12:33 PM
  2. How to set textarea font size to monospace size ?
    By neoart in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 20 Aug 2008, 3:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •