Double Ahah GET request when Firebug is enabled

A strange problem, when Firebug is turned on (and only then), my Javascript starts making a double GET request (AHAH) in what seems random.

The result of this double call is that the code returned from the server (PHP created by Google Map / Javascript) is wiped out on the screen.

This problem does not occur in any other browsers unless firebug (which leaves Firefox) is enabled.

Im really lost what can cause this and how to solve it. Any input is much appreciated!

+4
source share
2 answers

I would see if there is a major error that Firebug makes more obvious. An example would be a race condition. It is possible that under normal operating conditions, one of the two requests blocks the other, but there may be enough time for both requests to run under the debugger.

Kind of a strange idea, but I think I saw something similar before.

In addition, I can’t refuse the best offer without seeing the code.

0
source

I ran into a similar problem and discovered two problems that could work.

First, if you have links with an empty source (src = ''), try deleting them and see if this fixes the problem.

Secondly, http://www.nodans.com/index.cfm/2010/1/8/A-Side-Effect-of-ySlow-and-Firebug explains that there are several places where Firebug makes additional calls. You can uncheck the boxes to disable this behavior (a blog post explains where).

0
source

Source: https://habr.com/ru/post/1303327/


All Articles