Hello Dimitar,
That the issue was iframe-related was my first guess, and I have spent some time trying to figure out a way to implement jqxGrid in an iframe (that can and will be reloaded) without success. I’ve done similar tests (loading libraries in the same iframe, and reloading them) without issues.
Could you provide an example of jqxGrid inside an iframe that will not leak if the iframe is reloaded?
I do believe it may be an issue with jqxGrid holding on to specific objects of jQuery. During my analysis, I did observe that the memory leak was much less important (3-4mb vs 15mb) if jQuery was not part of the iframe, but rather called from the parent of the iframe as seen below:
‘if(typeof $ === ‘undefined’) {
var $ = jQuery = window.parent.$;
jQuery = window.parent.jQuery;
}’
This however, can lead to unexpected behaviour of the code.