I have a big shiny button for launching my SmartClient app. My idea was that by showing this button on all my screens, the fancy new app would never be more than a click away for my users. This means that I need to load all the related javascript on every page (do the files get cached?). The latest problem I'm having is that SmartClient is sort of stomping over other JavaScript business I have going on my other pages. The main trouble is centered around some custom widgets I wrote that use the JQuery AJAX library. When I try to include the SmartClient AJAX files (particularly ISC_core.js) on the same page as one that needs JQuery, the JQuery stuff doesn't work (and generates lots of errors in FireFox's or Chrome's Javascript consoles).
So, before I worry about trying to make different JavaScript libraries play nice together, maybe I should be asking if it's really feasible in terms of performance to be including all those SmartClient libraries (and my own app-related .js file--comparable in size and complexity to your showcase app) on every page. I've profiled the page loads using a timer in PHP, and the execution time seems no different, but there is definitely an additional noticeable lag when actually physically navigating pages.
If that's a problem that can be surmounted or worked-around, then how do I go about scoping SmartClient to only be concerned with elements that were created with SmartClient, and not pollute other code?
So, before I worry about trying to make different JavaScript libraries play nice together, maybe I should be asking if it's really feasible in terms of performance to be including all those SmartClient libraries (and my own app-related .js file--comparable in size and complexity to your showcase app) on every page. I've profiled the page loads using a timer in PHP, and the execution time seems no different, but there is definitely an additional noticeable lag when actually physically navigating pages.
If that's a problem that can be surmounted or worked-around, then how do I go about scoping SmartClient to only be concerned with elements that were created with SmartClient, and not pollute other code?
Comment