I am doing a web project which has several javascript files, finding the front-end response a bit slowly especially on firefox. The factor related to server side has been ruled out, so I conclude that it must has something to do with my javascripts.
I currently use firebug to debug, using console.log(), or by commenting some codes here and there.
But it turns out to be very time-consuming! Does anyone has other efficient or better ways to help me? Thanks in advance.
********Below is part of the codes which take up most of the time, @Bill. Firebug reported an Undefined error to "mainTabs". But when I tried to redeclare mainTabs in load callback, it remained the same.******
var mainTabs = $("#main-tabs").tabs({
selected: defaultTab,
cache: true, //set tabs to cache the content
load: function(event, ui){
//want to preload the non-active tabs' content
console.log("mainTbas: "+mainTabs.html());
mainTabs.tabs("load", ui.index+1);
}
});