The Web’s Black Magic: common tips, tricks, and hacks as viewed from within WebKit

Matthew Delaney Jing Jin

Matthew Delaney and Jing Jin

Ever wondered what’s really happening under the hood when you apply translateZ(0)? Feeling shaky about how/when pesky CSS style recalcs are slowing things down? Do intermittent page flashes, having to use setTimeout(0) to trigger CSS transitions/animations, or unreliable DOM timers ever get you down? If so, we’ll explain how all this black magic works and more through the lens of WebKit’s rendering engine. Warning: there might be a lot of blood, guts, and C++ code.