Bug HuntWhat made this blog slow?

time to read 1 min | 170 words

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…


More posts in "Bug Hunt" series:

  1. (30 Jan 2012) What made this blog slow?
  2. (27 Jan 2012) What made this blog slow?