Skip to content

Instantly share code, notes, and snippets.

@stoikerty
stoikerty / moebius-strip.html
Last active February 9, 2019 20:24 — forked from topologicallytony/index.html
Mobius Strip
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Mobius Strip</title>
@stoikerty
stoikerty / app.js
Created November 27, 2016 15:09 — forked from mjackson/app.js
Using webpack with pixi.js
var PIXI = require('pixi.js')
console.log(PIXI)
@stoikerty
stoikerty / what-forces-layout.md
Last active May 14, 2020 13:40 — forked from paulirish/what-forces-layout.md
What forces layout/reflow in Chrome. 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()
.DS_Store
*.swp
*.swo
Gemfile.lock