Using jQuery, what's the performance difference between using:
$('#somDiv').empty().append('text To Insert')
and
$('#somDiv').html('text To Insert')
?
$('#somDiv').html(value) is equivalent to $('#somDiv').empty().append(value).
$('#somDiv').html(value)
$('#somDiv').empty().append(value)
Source: jQuery source.
1.4m articles
1.4m replys
5 comments
57.0k users