Using jQuery, what's the performance difference between using:
$('#somDiv').empty().append('text To Insert')
and
$('#somDiv').html('text To Insert')
?
See Question&Answers more detail:osUsing jQuery, what's the performance difference between using:
$('#somDiv').empty().append('text To Insert')
and
$('#somDiv').html('text To Insert')
?
See Question&Answers more detail:os$('#somDiv').html(value)
is equivalent to $('#somDiv').empty().append(value)
.
Source: jQuery source.