Script stack space exhausted firefox

javascript, jquery, mozilla, xml

Solution

It sounds like there is some recursion going on when processing the xml, that is essentially causing a stack overflow (by any name).

Thoughts:

- work with less data

- if you are processing the data manually, try to use less recursion? perhaps manual tail-call or queue/stack based

- consider json - then you can offload to the script host to rehydrate the object without any extra processing

Problem

I am working with a large XML response from a web service. When I try to get that using a URL, after some time it displays an error in Firebug that "script stack space quota is exhausted" How can i resolve that?

Original source