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.