$ 0 0 Could you simplify it into a JSFiddle? That makes it a lot easier to debug where the loop might be happening.