House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion 8 (Scorpio)

(ColdFusion 8) Compressing the Ajax libraries

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Michael Dinowitz
08/09/2007 07:13 PM

I was looking over the libraries for things like cfmenu and a standard usage of the tag loads something like 200k of javascript. Not something I want to add to House of Fusion. I tried to gzip the files and change the extension to .js but that failed. I assume it is not possible to pre-compress the .js files and the only way to compress them is to use an 'on the fly' compression program. Is this correct? Is there any way to compress the .js without a webserver add-on? -- Michael Dinowitz President: House of Fusion    (http://www.houseoffusion.com) Publisher: Fusion Authority    (http://www.fusionauthority.com) Adobe Community Expert / Advanced Certified ColdFusion Professional

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rey Bango
08/09/2007 09:56 PM

Thanks linking to me Charlie! :) Charlie Griefer wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rey Bango
08/09/2007 10:02 PM

Hi Michael, The YUI & Ext files contained in CF8 are already compressed and apart from GZipping, there's not much more you can do to them to make them smaller. The Spry files can be made smaller using Dojo's ShrinkSafe compressor. As Charlie mentioned, I blogged about it so check out that link. Since HoF is a consumer-facing website, I would suggest you take a serious look at jQuery and its associated plugins if filesize is a concern (www.jquery.com). A number of CF gurus have embraced it and they seem to be quite happy with the results. Rey... ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
James Holmes
08/09/2007 09:01 PM

You could see if this kind of technique is able to reduce the file size: http://javascriptcompressor.com/ > I was looking over the libraries for things like cfmenu and a standard > usage of the tag loads something like 200k of javascript. Not > something I want to add to House of Fusion. I tried to gzip the files > and change the extension to .js but that failed. I assume it is not > possible to pre-compress the .js files and the only way to compress > them is to use an 'on the fly' compression program. Is this correct? > Is there any way to compress the .js without a webserver add-on? -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/


<< Previous Thread Today's Threads Next Thread >>

Search coldfusion8

June 18, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
             1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30             

Designer, Developer and mobile workflow conference