Fix for the Firefox "Transferring Data From.." bug
Some of you may have noticed that the status bar in Firefox will show "Transferring Data From yourdomain.com" even after the page and all flash content have finished loading.
Internet Explorer does not have this problem, so i am calling it a Firefox bug.
I have searched and found many people with this problem, but no solutions.
I have made a workaround to this, and would like to share it here for everyone.
This workaround uses swfobject, and ExternalInterface to call a javascript function.
Ok, here we go.
1.
Stick this code in the head section of your page:
Code:
<script type="text/javascript">
function DoneLoading() {
var so = new SWFObject("", "", "0%", "0%", "8", "#000000");
so.write("DoneLoading");
}
</script>
2.
Stick this div at the end of the body section of your page:
Code:
<div id="DoneLoading">
</div>
3.
This is the flash action script to call the javascript function:
Code:
import flash.external.*;
ExternalInterface.call('DoneLoading');
And that is all you need to do.
swfobject will start to try to load a .swf that does not exist into the "DoneLoading" Div, and will then send the data to Firefox that it is done loading, and the pages status will show done.
now i think i can live with it. i'm more safari for flash.
I tried your fix really quick, but it didn't work. It might be my already existing swfObject script or the version I'm using. No big deal, I don't think I'm going to mess with my existing schtuff, I'm just happy to read that this bugs someone other than me. Now I can live with it.
I've gone a step further and installed the Extended Status Bar 1.5.4 where it still says: "Transferring data from www.mydomain.com" and if the site is cached it'll say: "Read www.mydomain.com" ... along with some other info that is irrelevant when it comes to loading .swfs.
Thanks for confirming this annoying little punk. As long as it doesn't show up in IE, I'm fine with it. :-)