New! :P

Instead of call external javascript, just put the content on current 
page and gzip it!!
My results:
<!--
        Compression level: 8
        Original size: 560.87 kb
        New size: 111.34 kb
        Saving: 449.53 kb (80 %)
        Time: 73.5 ms
        Serverload: 0.31
-->

Ex:
<?php
require_once("spGzip.php"); // PHP-Class that compress the page
?>
<html>
   <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <title>Estagio</title>
     <script type="text/javascript">
     <?php
     // Instead of call external script, include on current page
     include("script/estagio.js");
     ?>
     </script>
   </head>
   <body>
     <script type="text/javascript">
       if (!qx.IS_SOURCE) {
         qx.log.Logger.ROOT_LOGGER.setMinLevel(qx.log.Logger.LEVEL_ERROR);
       }
       qx.core.Init.getInstance().setApplication(estagio.Application);
     </script>
   </body>
</html>


You can check this information by accessing 
http://intranet.mouralacerda.edu.br/estagio/build/index.php or using 
this url in this test:
http://whatsmyip.org/mod_gzip_test/



Dirk Wellmann escreveu:
> Hi,
> 
> just tested it with a bigger application and it worked with FF 2 and 
> IE7! Just compressed the xxx.js to xxx.js.gz with gzip. Does anybody 
> know to make tomcat handling these compressed stuff? With apache2 it 
> works, access via Servlet won't work.
> 
> Regards
> 
> Dirk
> 
> Sebastian Werner schrieb:
>> Hugh Gibson schrieb:
>>   
>>>> But why when you load source version the final size is smaller?
>>>>       
>>> No, it's not.
>>>
>>> If you load the source version and then run it under a Javascript debugger 
>>> like Firebug you will see hundreds of script files are being loaded. They 
>>> add up to a much bigger bunch of Javascript compared to the built version.
>>>
>>> 512k is small for the amount of functionality you get. And consider that it 
>>> will be cached by the browser and so won't get sent each time the user goes 
>>> to the page.
>>>
>>> An important tweak, if your server supports it, is to compress the script 
>>> file using gz. We have a custom server here, and if it finds myfile.js.gz 
>>> in the folder, and the browser says that it can cope with compressed 
>>> scripts, it sends the .gz file. IE7 and FF2 can cope, and the compressed 
>>> script is 20% of the size of the uncompressed script. That's a huge 
>>> improvement.
>>>
>>> In fact I don't know why the qooxdoo team don't do this with all their 
>>> scripts as it would make a significant improvement to the initial 
>>> perception of their library.
>>>     
>> Hugh, maybe you can contribute something in this area. You help is 
>> really appreciated. What do you think is the best solution qooxdoo can 
>> deliver? Is gzipping scripts really supported in IE7? I wasn't aware of 
>> that they have fixed the issues of IE6 in IE7. Can you point me to 
>> related online resources regarding this topic? Would it be helpful to 
>> directly generating a gzipped version of the generated script? Other 
>> than that, what do you think could be deliver to assist the users in 
>> this area?
>>
>> Sebastian
>>
>>
>>   
>>> Hugh
>>>
>>> -------------------------------------------------------------------------
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>> opinions on IT & business topics through brief surveys-and earn cash
>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> qooxdoo-devel mailing list
>>> [EMAIL PROTECTED]
>>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>>     
>>
>> -------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>   
> 
> 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to