You wouldn't want to expire that content though. You WANT to cache it. -----Original Message----- From: Jim Rising [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 2:06 PM To: CF-Talk Subject: RE: too many js libraries
I figured it would be an issue with browser caching... Hence the 'of course I don't know how well this deals with browser caching issues'. :) though I suspect that you could 'expire content immediately' on the web server to remedy this. If bandwidth is your issue, seems like a huge waste of time for such a small problem anyhow considering that all of these resources can be loaded once at 'runtime'... Though as brad mentioned, if the issue isn't bandwidth but cpu and memory overhead... Fewer functions means less overhead. Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -----Original Message----- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 1:37 PM To: CF-Talk Subject: RE: too many js libraries > If I was to try and solve the problem on the other end (after the site > was developed), I would first identify all the javascript objects that > were in use, and where they were being used within the application. No > idea on the best approach for this... Seems like a manual search. Once > I had them all inventoried, I would build a single 'javascript.cfm' > file that consists of conditional logic wrapped around javascript, > where the conditions identified specific javascript functionality > given by javascript objects. At the top of every page, I would put a > <cfparam name="jObjects" > default="accordian,XMLHttpRequest,autocomplete"> (where the default > values are the objects that I want included on that page). > > After all of this was done, I would include the javascript.cfm like > this: > > <script type="text/javascript" src="javascript.cfm"></script> > > Of course I don't know how well this deals with browser caching > issues... That would be a terrible approach, because of browser caching issues. You'd be much better off just having one static JS file that gets used by every page, but only downloaded once. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! This email has been processed by SmoothZap - www.smoothwall.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283498 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

