Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8278069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T08:52:53+00:00 2026-06-08T08:52:53+00:00

Which of these DOM element properties can cause browser to perform a reflow operation?

  • 0

Which of these DOM element properties can cause browser to perform a reflow operation?

  • innerHTML
  • offsetParent
  • style
  • scrollTop
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T08:52:55+00:00Added an answer on June 8, 2026 at 8:52 am

    In a nutshell, any property that causes an element to change size or move will cause a reflow because that change of size or position can affect other elements. Browsers spend effort trying to be as efficient as possible to identify what might need to be reflowed, but each has a different way of doing that.

    Properties that cannot affect the size or position of an element such as a background color should not trigger a reflow, though there is no guarantee that every browser is smart enough to implement this.

    In your list:

    innerHTML changes the HTML of an object which certainly can affect size and position and will trigger at least a partial reflow.

    offsetParent appears to me to be a read-only property that isn’t something you set directly so reading it shouldn’t cause a reflow if one wasn’t otherwise already scheduled.

    style is the gateway to lots of properties, including height and width which obviously would lead to at least a partial reflow.

    scrollTop need not cause a reflow because layout is generally not changed, just a scroll position of one element (and it’s children). The layout should remain the same, just a repaint is required.

    It’s probably worth saying also that most properties that lead to a reflow, don’t immediately cause that reflow, but rather they schedule the reflow for some short time in the future. That way, if some javascript runs that changes a bunch of different properties, each of which needs a reflow, the browser isn’t doing N reflows, but rather, it schedules the reflow, waits for the current javascript thread of execution to finish and then it carries out whatever reflows are needed just once. There are some properties that when read, cause all reflows that are pending to be done now because those properties could have inaccurate values if the reflows aren’t done right away. You can read about that in this earlier post: Forcing a DOM refresh in Internet explorer after javascript dom manipulation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am confused as to when I can use the DOM properties and when
Is it possible to get a child dom element, which will be the first
Is there an event in jQuery which fires on dom element creation? I tried
Is there a Clojurescript library which makes the DOM look like a Clojure data
I have a view that contains two NSTextFieldCell s. The size at which these
Which of these two platforms/ecosystems are better for writing web applications/websites? I am not
Which amongst these would be well suited for a scalable server side TCP socket
Which of these queries is more efficient, and would a modern DBMS (like SQL
Which of these two statements is faster/better practice? myList.Where(x => { bool itemOne= x.ItemOne
I was wondering which of these two scenario's works best for swapping between 2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.