jQuery's AJAX memory leak of response text? jQuery's AJAX memory leak of response text? ajax ajax

jQuery's AJAX memory leak of response text?


This video demonstrates that actually there is no memory leak. jQuery fetches the new version of the string and v8 releases the old one. The reason of that behavior is the fact that V8 engine uses many different tricks for optimization and may keep a reference to an object inside its internal structures and generated code.

The blue bars in the video are the moments in time when profiler found new objects/strings in the v8 heap. The bars become grey when v8 collects these objects as a garbage.


Perhaps missing something, yet jsfiddles at original post appear return same results ?

Also, would

$.ajaxSetup({cache : false})

affect results ?

To delete browser cache at chromium/chrome browser, at Terminal (*nix) try

find ~/.cache/chromium/Default/Cache -type f -exec rm -f {} \;

find ~/.cache/chromium/Default/Media\ Cache -type f -exec rm -f {} \;

replacingchromium with chrome if needed. Alternatively, navigate to the

chromium or chrome folder at device, navigate to each Default and Media Cache folders within, and delete contents.