Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The question is: "Which is faster - innerText (textContent) or innerHTML?".
If you think about it a little, it is paraphrased as: "Which is faster - insert a single text node, or a bunch of nodes?".
I think the answer is already clear, but just in case .
If someone else has not understood - text () must be faster than html ().
These functions have different tasks... If it is pure text, then use .text(), if there are tags, then .html() accordingly
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question