Skip to content

Instantly share code, notes, and snippets.

View YvanDaSilva's full-sized avatar
🌐
Working remotely

Yvan da Silva YvanDaSilva

🌐
Working remotely
View GitHub Profile
@YvanDaSilva
YvanDaSilva / what-forces-layout.md
Created November 21, 2017 23:05 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()

Keybase proof

I hereby claim:

  • I am yvandasilva on github.
  • I am yvanmsilva (https://keybase.io/yvanmsilva) on keybase.
  • I have a public key ASB_XNRKLz_GF5ZZ1kk7D3WUSnB37m3YXQzDpkPLJp5Rpwo

To claim this, I am signing this object:

@YvanDaSilva
YvanDaSilva / rails_migration_cheatsheet.md
Last active September 15, 2015 13:32 — forked from amejiarosario/rails_migration_cheatsheet.md
Rails Migration - Cheatsheet