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 MX7 and Flex 2 
Build sales & marketing dashboard RIA’s for your business. Upgrade now
http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283494
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to