That is exactly what I was saying... 'unless no two pages use the same code at all'....
If you have a view within an application that uses an ajax enabled datagrid but does not need autocomplete, form validation, and an accordian... Why would you load your entire toolbox into the back of the truck when all you need is a box of nails and a hammer? So maybe you don't expire content immediately (or at all) ... But at least identify those javascript components that are needed for what you're doing, and only download those tools when they are needed rather than downloading all of the objects you have and including all of them into every view as a default? I don't know how browsers interpret javascript either... But it does seem like pages that are heavy on js do use lots of memory, and when I see my browser footprint climbing... I have to wonder if there's another way. :) Jim Rising Sr. Cold Fusion Developer ICGLink Inc. www.icglink.com -----Original Message----- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 11, 2007 3:11 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. That gets a distinctly suboptimal result. If you're using a bunch of JavaScript on many pages, that JavaScript should be downloaded and cached once, unless no two pages use the same code at all. > 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. Bandwidth is not the issue. Downloading takes time and negatively affects performance. I don't know enough about how browsers interpret JavaScript to be sure that fewer functions means less overhead. Of course, fewer functions means less download time, but there are things you can do about that: http://betterexplained.com/articles/speed-up-your-javascript-load-time/ 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283506 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

