I'm using the Ajax method of jquery, to retrieve some data from the server. I have a question about memory usage, when using this method.
To simplify the problem, lets take a real simple situation :
one button with a click event handler $("#myButton").click( ... )
When I click the button, I make an ajax call to the server using $.ajax, returning json.
If I understand correctly, json gets evaluated using Eval to build an object I can use in the succes handler.
Suppose the json returned is different everytime I click the button. When I look in firebug, for each call you see an eval statement (choose the script panel, then the select script dropdown).
If I click 10 times on the button, I see 10 times an eval script... will this cause the memory usage increase each time I click the button? It seems to me the eval statement remain in memory ? if so, is there a way to release that memory?