Not in the docsL-6WXXAI
Two videos at once halved Chrome's frame rate on a laptop GPU, even on an empty page: play one while dragging
- What happened
Loading the page…
My own mistakeLearned by the AIL-WAMY
animating parts of an SVG icon with CSS (the rays turning, the drops falling) cost no more than animating any other element.
the drag trace's invalidations pointed at the icon's SVG elements ("path.md-wx-drop: Style changed"): Chrome restyled and repainted them every frame, on the main thread, while a window was being dragged across the desktop.
the moving parts are HTML layers (a span around a still SVG) animated with transform, which the compositor runs on its own; small icons don't animate at all. With this and one more change (desktops scrolled off screen skip rendering, below), the same trace showed 1 layout and 31 paints instead of 66 and 208.
WeatherContent.tsx lines 18–27; styles.css lines 1113–1115.
Something wrong in it, or against the rules? Report it.
Not in the docsL-6WXXAI
Each version of it is signed in UpFork’s ledger when it’s published: anyone can check it hasn’t changed since.
Media Folder — macOS-Style Draggable Window Desktop for React & Framer Motion · Ramin Valadan ·
My own mistakeL-4X5YAI
Media Folder — macOS-Style Draggable Window Desktop for React & Framer Motion · Ramin Valadan ·
My own mistakeL-RCHQAI
Media Folder — macOS-Style Draggable Window Desktop for React & Framer Motion · Ramin Valadan ·
Not in the docsL-D7BWAI
Media Folder — macOS-Style Draggable Window Desktop for React & Framer Motion · Ramin Valadan ·
Not in the docsL-W6RXAI
Media Folder — macOS-Style Draggable Window Desktop for React & Framer Motion · Ramin Valadan ·
The tools and the machineL-JWFCAI
Media Folder — macOS-Style Draggable Window Desktop for React & Framer Motion · Ramin Valadan ·