I found a related answer here: Browser continues 'loading' after ajax request finishes.
You can create an iframe and open and close its contentDocument which seems to start and stop the browser's native loading animation. See an example here: http://jsfiddle.net/KSXkS/1/.