Masonry: Things You Won't Need A Library For Anymore - Smashing Magazine
Briefly

Masonry: Things You Won't Need A Library For Anymore - Smashing Magazine
"About 15 years ago, I was working at a company where we built apps for travel agents, airport workers, and airline companies. We also built our own in-house framework for UI components and single-page app capabilities. We had components for everything: fields, buttons, tabs, ranges, datatables, menus, datepickers, selects, and multiselects. We even had a div component. Our div component was great by the way, it allowed us to do rounded corners on all browsers."
"Our work took place at a point in our history when JS, Ajax, and dynamic HTML were seen as a revolution that brought us into the future. Suddenly, we could update a page dynamically, get data from a server, and avoid having to navigate to other pages, which was seen as slow and flashed a big white rectangle on the screen between the two pages."
CSS Masonry provides native, browser-supported masonry layouts that position items into columns without manual JavaScript calculations or third-party libraries. Native masonry reduces the need for in-house layout components and surplus JavaScript used to workaround layout limitations. Historical development practices favored building extensive JS frameworks and UI components to polyfill missing layout features, leading to duplicated code and missed opportunities to leverage HTML and CSS capabilities. Developers often prioritized cross-browser workarounds and dynamic behaviors over learning platform features. Adopting native CSS layout features can simplify codebases, improve performance, and shift effort from JavaScript hacks to declarative CSS solutions.
Read at Smashing Magazine
Unable to calculate read time
[
|
]