Bug HuntWhat made this blog slow?
A while ago the blog start taking 100% CPU on the client machines. Obviously we were doing something very wrong there, but what exactly was it?
We tracked down the problem to the following code:
As you can probably guess, the problem is that we have what is effective an infinite loop. On any Ajax request, we will generate a new Ajax request. And that applies to our own requests as well.
The fix was pretty obvious when we figured out what was going on, but until then…