Skip to content

Instantly share code, notes, and snippets.

View jfairbank's full-sized avatar

Jeremy Fairbank jfairbank

View GitHub Profile
@paulirish
paulirish / what-forces-layout.md
Last active March 28, 2024 11:45
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.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@elijahmanor
elijahmanor / conferences.md
Last active August 29, 2015 14:20
Conferences

Conferences

Larger Events (Single City)

Large (Multiple Cities)

  • Breaking Development (nashville, atlanta, washington dc, orlando, san diego, dallas) http://bdconf.com/
  • An Event Apart (atlanta, seattle, boston, san diego, washington dc, chicago, austin, san francisco) http://aneventapart.com/
@willurd
willurd / web-servers.md
Last active March 29, 2024 02:15
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000