How to best UNLOAD content in a DIV using LOAD or HTML to manage resources?
<p>I am using jQuery 1.6.2.</p>

<p>In a master page, I open up several divs that will later be populated with info through the use of buttons:</p>

<pre><code>&lt;input type="button" id="ButtonOne"&gt;
&lt;input type="button" id="ButtonTwo"&gt;
&lt;input type="button" id="ButtonThree"&gt;
&lt;div class="SectionDiv" id="DivOne"&gt;&lt;/div&gt;
&lt;div class="SectionDiv" id="DivTwo"&gt;&lt;/div&gt;
&lt;div class="SectionDiv" id="DivThree"&gt;&lt;/div&gt;
</code></pre>

<p>I make a call to populate the divs like this:</p>

<pre><code>$("#ButtonOne").click(function() {
    $("#DivOne").load("FileOne.html");
});
</code></pre>

<p>When I popule a div, I want to get rid of everything in the other divs.  I have done this two different ways.  Like this:</p>

<pre><code>// METHOD ONE
$("#ButtonOne").click(function() {
    // UNLOAD ALL DIVS
    $(".SectionDiv").load("BlankPage.html");
    // LOAD THE DIV THAT NEEDS TO BE LOADED
    $("#DivOne").load("FileOne.html");
});

// METHOD TWO
$("#ButtonOne").click(function() {
    // UNLOAD ALL DIVS
    $(".SectionDiv").html("");
    // LOAD THE DIV THAT NEEDS TO BE LOADED
    $("#DivOne").load("FileOne.html");
});
</code></pre>

<p>In method one, I load the div with a page that has no content, a completely empty page. In method two, I use html("") with the same effect(?).</p>

<p>While these two methods have the same visual outcome, does one have a distinct advantage over the other for killing existing variables in the divs, or detaching elements better from the DOM, or anything?  Is one faster in certain environments than the other? Does one hog more resources than the other?</p>
