Is this the proper way to completely clear the dom cache ? $.mobile.pageContainer = null;

Is this the proper way to completely clear the dom cache ? $.mobile.pageContainer = null;

Is this the proper way to completely clear the dom cache ? 
  $.mobile.pageContainer = null;

Does any one else have issues with elements being rendered improperly after 13 or 14 page loads ?

After about 13 to 14 page loads the fixed footer and other elements start tanking in various browsers including desktop firefox 16.0.2. There is only 6 different pages so it should not take up more space but it does.

So I created this function to clear the dom after 10 loads,

function updatecounter(event){
if ( $.mobile.counter10 ) {
         $.mobile.counter10++;
} else {
        $.mobile.counter10 = 1;
}
if ($.mobile.counter10 > 10) {
  $.mobile.pageContainer = null;
//alert('cleared dom ' +  $.mobile.counter10);
}
else {
//alert('counter' +  $.mobile.counter10);
}

}
$(document).delegate('.ui-page', 'pageshow',updatecounter);