|
Mailing Lists
|
Home /
Groups /
ColdFusion 8 (Scorpio)
(ColdFusion 8) Compressing the Ajax libraries
I was looking over the libraries for things like cfmenu and a standardMichael Dinowitz 08/09/07 07:13 P http://www.reybango.com/index.cfm/2007/6/6/CF8-Ajax-Quick-Tip-for-Shrinking-the-Page-SizeCharlie Griefer 08/09/07 08:28 P Thanks linking to me Charlie! :)Rey Bango 08/09/07 09:56 P Hi Michael,Rey Bango 08/09/07 10:02 P You could see if this kind of technique is able to reduce the file size:James Holmes 08/09/07 09:01 P 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 http://www.reybango.com/index.cfm/2007/6/6/CF8-Ajax-Quick-Tip-for-Shrinking-the-Page-Size ? ----- Excess quoted text cut - see Original Post for more ----- Thanks linking to me Charlie! :) Charlie Griefer wrote: ----- Excess quoted text cut - see Original Post for more ----- 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 ----- 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/
|
June 18, 2013
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||