10

Trying to debug Ajax calls running in infinite loop

Comments
  • 1
    This doesn't sound like a well designed thing? ... Why would AJAX run in an infinite loop?
  • 1
    @Seethe My thought exactly. There must be some odd callback pattern that recalls itself sometime down the stack.
  • 1
    lol it wasn't my code plus it was for fetching live data.
  • 1
    @valium123 I never liked the looped AJAX method for displaying 'live' data, there's many cases where it will cause needless stress on the client and the server. I'd look into SSEs or Web Sockets as a real time solution if your tech stack supports it. I've used Web Sockets with Socket.IO and it rocks!
Add Comment