Why does my spinner GIF stop while jQuery ajax call is running?

It’s not the Ajax call that’s freezing the browser. It’s the success handler (applyTemplate). Inserting HTML into a document like that can freeze IE, depending on how much HTML there is. It’s because the IE UI is single threaded; if you notice, the actual IE menus are frozen too while this is happening.

As a test, try:

applyTemplate = function(msg) {
   return;
}

Leave a Comment