Strange reload effect in Firefox

I have a php generated page that includes two dropdowns (SELECT) that contain many items (about 2000 each). The page is fine, but when it loads in Firefox there is a delay during loading and then it seems to refresh the whole page. If the user tries to click something before the "reload" happens, it has no effect.

In explorer, each dropdown takes a while (a second or two) which is great.

Does anyone know what this is? And besides using AJAX to populate the dropdown dynamically, is there an easy way to avoid this?

EDIT: more information. I have a PHP script to output to a log file whenever it is called, so now I can see what appears to be the following:

The PHP script is called and the page starts loading. After a few seconds, another identical call to the PHP script is executed, after which the page is loaded again. This time, it will complete the download. So it looks like the browser somehow refreshes the page for some reason before the page finishes loading.

0


source to share


2 answers


Wild shot in the dark: do you have any images or hidden image submit buttons with BLANK src? I needed to "fake" the default input effect for a textbox and use a hidden image button in front of all fields. Since it was hidden, I left the src attribute blank. Firefox loaded the page twice! Pointing the src attribute to single pixel, but the real image captured it.



+1


source


First, you must use a network sniffer like wireshark to confirm that the page is indeed being loaded twice. Then confirm that this only happens with firefox; Then you are on a good track! I've tried a variation on what n8wrl suggests; it was in some css declarations with some empty background-image property -> Check your CSS for empty file declarations



+1


source







All Articles