Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

77
Views
Is `Element.innerHTML` evaluated on every access to it?

Is Element.innerHTML (or Element.outerHTML) is evaluated each time something gets access to it, each time an element is changed, or lazily only if the element has been changed?

For example, where is it evaluated in the following code for el:

let el = document.createElement("div")
let another = document.createElement("div")
let text = document.createTextNode("text")

// evaluated here?
el.appendChild(another)

// again evaluated here?
another.appendChild(text)

// lazily evaluated here?
console.log(el.innerHTML)
// what will happen here? simple access or reevaluation?
console.log(el.innerHTML)
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!