Simply declare your JS vars at the top of the page and reference them in your js file.
<cfoutput> <script> $.datasource = '#application.datasource#'; $.root = '#application.root#'; $.user = '#session.user#'; </script> </cfoutput> Then load your js files underneath. This way, your browser can cache your js files as normal and you are not loading unnecessary external files on each page request. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326141 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4