getScript() - Any way to stop same script loading / executing more than once?
Is it possible to tell if a script has already been loaded/executed? I've using the jQuery UI tabs and they dynamically load the correct .js file for each tab's contents. However if a user switches back and forth between tabs it seems the relevant .js files are loaded over and over again and things soon start to get very slow.
I thought about using a variable and flagging it as true is a script has run, but I was hoping for a more elegant method as I could end with a lot of scripts.
Thanks
Ric