Friday, 15 May 2015

javascript - What causes chrome to show loading animation on tab -



javascript - What causes chrome to show loading animation on tab -

i have single page web app has little load , subsequent info loaded via ajax. during wait utilize css show wait cursor, doesn't impact tab loading animation. reason, after sitting idle while, tab show wait animation never goes away. can't find info on causes behavior. uncertainty has waiting routine, here is....

javascript:

// json info cgi querydata = function (action, queryobj, callback) { // create sure query not blank if ($.map(queryobj, function (val) { homecoming val !== "" }).some(function (el) { homecoming el })) { queryobj.action = action; $('body').addclass('wait'); $.getjson(cgi_src, queryobj, function (result) { callback(result); }).fail(function () { alert("query failed"); }).always(function () { $('body').removeclass('wait'); }); } };

css:

.wait, .wait * { cursor: wait !important; }

javascript jquery google-chrome

No comments:

Post a Comment