Tag: Layout
-
Don’t attach tooltips to document.body - Atif Afzal
PermalinkReally nice walkthrough about diagnosing and solving slow tooltips.
-
Resize-Resilient `content-visiblity` Fixes - Infrequently Noted
PermalinkAlex posted a follow-up to a prior post on avoiding scrollbar jumping when using content-visibility.
It’s clever stuff—the combination of ResizeObservers and IntersectionObservers helping to avoid the shifting around that would occur otherwise.
This doesn’t do much though to eliminate the reservations I have about
content-visibility
. In theory, it’s a great addition, but the fact that it seems to need so much supporting scaffolding to make it usable for a relatively simple use-case makes me feel like it may be missing a few other pieces of native plumbing before it’s really ready for primetime.
-
Accurately measuring layout on the web | Read the Tea Leaves
PermalinkClever stuff from Nolan about trying to measure the complete cost of a component—not just the JS execution.