Firefox loading page twice
I was facing some weired problem in firefox page was getting called twise but in safari it was working fine i tried first if there is any javascript which is only getting triggered in firfox then i removed all the extensions, for the firefox but though problem persist so i gone through my “access logs” and saw it’s getting loaded twice so i was so surprised that how that page is getting loaded twice and in firbug also it showed me loading twice but it was not for all the pages so i thought it has to be something with firefox so finally i was searching on the internet i found few posts which were mentioning the same browser(Firefox) behaviour and it was because of the empty img src property
If in your html something like
<img src=”"
then Firefox will try to load same page again hopping to get the sorce for the image
this is not only for image tag but any html tag which has src property and if it’s blank it will try to load again.
so i just corrected that by putting some image url for the src and hidding it using javascript and surprisingly
it solved my problem.
Just for information even though this behaviour is somewhat annoying but it’s according to W3C standered.
I got the same problem too, can you tell me how did you hidding it , i meen use javascipt…?
Thanks!
Maybe u had something that makes u see things twice! Have you visited a psychologist recently? lol
Seems this issue has been fixed now? any update? I tried this. Now it is working fine…
Issue is still there. I was creating an RSS feed and was putting out bad urls in some of the tags which was causing it to load twice. (Firefox v3.0.8)
OMG ! YOU ROCKS !!!
same issue occured with :
[code][/code]
Page was loaded twice on FF2 and FF3
Bad code :
body class=”bbtp” style=”background-image: url()”
had the same problem. note that if you have firebug active it’ll load the page a second time which can mess up scripts if they are not done right
This problem still exists in FF 3.5.6 and Safari 4.0.4 (Windows). I was using the background-image: url() in a class definition. This is bad behavior by the browsers. They should not try to load anything since it is blank. If I wanted it to load the page again. I would put background-image: url(‘/’). I think they need to fix this.