Edit: update due to additional information about test2.htm (download page)
Original answer (for historical purposes): in fact, I do not see leaks in the code / markup you specified - is it possible to leak in Test2.htm (which you did not provide the code / markup for)?
New answer:
I would suggest that this is possible due to the many downloads of jQuery or other scripts that you have in test2.htm.
Assuming jQuery does not leak, just instantiating it and then dropping the jQuery and $ values, loading several times will contain at least 2 copies of jQuery in memory. When loading, jQuery backs up any previous versions of $ and jQuery to _$ and _jQuery - so you will have at least 2 copies of downloadable jQuery when you reuse load ().
The above assumption is most likely incorrect, but there is every chance that jQuery has leaks, even if you "unload" it by setting $ , jQuery , _$ and _jQuery to null - it really is not intended to be downloaded multiple times (but I'm sure that they allow it intentionally, so you can use noConflict() to load and use two different versions of jQuery, if necessary).
You can add a βselectorβ to the download URL. For instance:
$("#Test1").load("Test2.htm body", null, function() { //callback does nothing }); //or $("#Test1").load("Test2.htm div#the_Div_I_Want", null, function() { //callback does nothing });
I would suggest doing this if you are not interested in any scripts as a result of ajax, or, alternatively, if you need scripts, you need to select a selector to disable only certain elements / scripts, for example.
$("#Test1").load("Test2.htm :not(script[src$='jquery.js'])", null, function() {
It should also be noted that if you do not take into account the "data" argument (you have it as null ) and provide the function as the second argument, jQuery will correctly determine that the second argument is a callback, therefore
$("#Test1").load("Test2.htm :not(script[src$='jquery.js'])", function() {
permissible