Is there any easy way to pre-load all the contents of a set of jquery ui tabs?
I tried this code:
var total = $tabs.find('.ui-tabs-nav li').length;
var currentLoadingTab = 0;
$tabs.bind('tabsshow',function(){
console.warn("loading tab!!");
currentLoadingTab++;
if (currentLoadingTab < total)
$tabs.tabs('load',currentLoadingTab);
else
$tabs.unbind('tabsshow');
});
This fails I believe because it fails to allow the first tab to fully load so then I don't see anything and I get an error in Firebug. Thanks!