Firefox refreshes on OBJECT tag (once, then display properly)
Issue
I have a problem with an extension, plugin or with Thunderbird
Description
I didn't notice it before. I was doing some database script to count pageviews and noticed a strange behavior (increment of 2 instead of 1 on pages refresh) I first thought it was my code, but then realized only Firefox showed this behavior, and only when a flash object is on the page. If there's no embedded object, Firefox doesn't cause this double incrementation.
Which tells me Firefox must choke or something on the object and refresh the page to fix it. But only refreshes once, because the page is shown and the object too. I'm not sure of the issue, but I'd like to prevent that from happening. Double count of pageviews seems pretty bad to me.
Firefox version
3.6.3
Operating system
Windows XP
所有回覆 (6)
This sounds like a web-developer question rather than a user question. Maybe the resources at https://developer.mozilla.org/en/Web_Development will help.
It might. But I don't know the source of the issue (plugin, code, settings).
Firefox refreshes whatever the flash file is, so I don't think that's the issue. I'd guess a plugin or the code might be the issue.
If it's plugin based and code is correct, then the issue might be impossible to solve on my part.
If it's code based, I don't see why a refresh would then display the object correctly (and not loop indefinitely). But anyone who knows how Firefox works might pinpoint if it's a normal behaviour for Firefox and know what can cause it.
Because as far as I know, my flash file displays correctly on Firefox and IE, but the server side incrementation is done twice when it's Firefox AND there's an flash file embedded on the page. Which tells me there must be a fast refresh triggered during load. And that's this behaviour that I want to fix, which can either be code or my browser's settings & plugins.
I'll try development forum too in case someone knows something about it.
Are there two OBJECT tags or an OBJECT with a classid for IE and an EMBED for Firefox on those pages?
If that is the case then does it help if there is only one OBJECT without a classid but with a type="application/x-shockwave-flash" ?
The code uses one OBJECT with
data="http://arcade.namworld.com/games/gamename.swf" type="application/x-shockwave-flash"
and a PARAM inside the OBJECT for IE with name="movie" value="http://arcade.namworld.com/games/gamename.swf"
FF - As soon as I remove the GAMENAME in the DATA to an invalid flash file or remove DATA completly, it stop double incrementing pageviews. But of course it stops displaying anything.
I got some plugins like Firebug, Web Developper, NoScript which can mess with on-page codes. In case these are known to cause refreshes or something.
I just realized... Google Chrome does this too. And I know Chrome used some components from Mozilla.
Not IE.
So I guess it invalidate the plugins theory and makes it an event applicable to something shared by Chrome and Firefox. Either the OBJECT code is wrong for them or they decide to refresh the page for some reason.
Hmm, although the code is always the same, it seems not all flash games files makes this happen. Some do, some don't. And IE does not do it but FF and chrome do.
So I suppose it's supposed to behave this way although I do not know what triggers this.
Wouldn't it be better to simply attempt to redownload the flash file instead of the whole page, whatever triggers this? I don't create the games and some are popular and displayed on major games portals, so I'll be keeping them.
I guess I'll just have to hope this behavior gets changed eventually.