Dldnh told me to do some tests. I suspected that the body.onload () event would be raised when moving back and forth. So I created a simple test page and found out that this is true in Firefox 10, IE7, IE 8, IE 9, and Chrome 17. jQuery (document) .ready () will also be called.
So a very simple solution for hidind throbber will either use
<body onload="hideThrobber()">
or using ready jQuery
jQuery(document).ready(function () { hideThrobber(); };
to hide throbber. I implemented this and it seems to work fine on my page. It would be great if anyone with a similar problem could confirm this.
I also found this fooobar.com/questions/9314 / .... Although this is a bit outdated, the problem is that calling javascript while navigating forward and backward slows down the page still remains true. But I would suggest that today's JS engines are fast enough, so this is no longer a problem.
source share