jquery - Preventing UI from freezing due to ajax calls -
the commented out code @ https://github.com/djangocoder/djangogui/blob/master/templates/base.html on lines 192, 193, 196, 197, 199, , 205 freezing ui up. barely use text editor. want uncomment lines. there way without freezing ui? site @
http://198.144.178.112:8000
you need set async true. that's purpose of async parameter allow happen in background while browser continues on rest of code.
edit: sorry, here's more information.
starting @ line 173, should change async parameter in initialization of ajax function true. this:
function testconnection() { $.ajax({ url: "/", cache: false, async : true, error: function(xmlhttprequest, textstatus, errorthrown) { $('#errorbar').css({'height': ($('#header').height()) + 'px'}).show(); }, success: function(html){ $('#errorbar').hide(); } }); }
Comments
Post a Comment