𝚓𝚊𝚟𝚊𝚜𝚌𝚛𝚒𝚙𝚝
•
2026-04-06 23:36
One <script> tag, every framework: I built a skeleton loader that reads your actual DOM (8kb)
I built phantom-ui, a skeleton loader that generates shimmer placeholders by measuring your real DOM at runtime. No manual skeleton components to build or maintain. You wrap your content in <phantom-ui loading>. It walks the DOM tree, calls getBoundingClientRect on every leaf element (text, images, buttons, inputs), reads border-radius from getComputedStyle, and overlays animated shimmer blo...