Masonry: Things You Won’t Need A Library For Anymore — Smashing Magazine
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
CSS Masonry layout is coming to browsers as a native feature, eliminating the need for JavaScript libraries like Masonry.js. The article explores how modern web platform features—including popovers, dialogs, container queries, and anchor positioning—can replace third-party dependencies, resulting in better performance, smaller bundle sizes, and simpler code. Built-in Masonry offers significant advantages over JavaScript solutions: no render-blocking scripts, faster responsiveness, and familiar CSS syntax similar to Grid and Flexbox. The piece also provides resources for tracking new web features and ways developers can influence browser vendors' priorities through surveys and the Interop project.
Table of contents
Some Things You Might Not Need A Library For AnymoreThings You Might Not Need Anymore In The Near FutureWhy You Should CareBuilt-in Masonry LayoutWorkaroundsThird-party Masonry LibrariesBuilt-in MasonryHow To Know What’s Available And When It’s Available?My Thing Is Still Not ImplementedConclusion1 Comment
Sort: