Skip to content

Instantly share code, notes, and snippets.

View suiucat's full-sized avatar
😊
wow

suiucat suiucat

😊
wow
View GitHub Profile
@suiucat
suiucat / docker-registry-mirrors.md
Created October 11, 2024 07:05 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@suiucat
suiucat / what-forces-layout.md
Created June 15, 2020 13:50 — 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.

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
@suiucat
suiucat / plink-plonk.js
Created March 4, 2020 04:13 — forked from tomhicks/plink-plonk.js
Listen to your web pages