News for hackers. Stuff that matters.
Re:Show HN: Magic Grid – A simple JavaScript library for dyn... by supernintendo on Monday December 24, 2018 @12:49AM (#18750618)
Neat. We use Masonry [1] although I’m not the biggest fan of it. How does this library compare?

[1] https://github.com/desandro/masonry

Re:Show HN: Magic Grid – A simple JavaScript library for dyn... by e-oj on Monday December 24, 2018 @12:59AM (#18750657)
Depends on the use case. If the grid's items have varying widths then masonry is the better option. However, for a grid with equal width items, I'll definitely go with magic grid. It's just so much lighter (2.3kb minified) than masonry (23.5kb minified).
Re:Show HN: Magic Grid – A simple JavaScript library for dyn... by matt4077 on Monday December 24, 2018 @11:11AM (#18752741)
I really don't see what's lacking with CSS Grids for equal-with items. Even accommodating different sizes, and allowing reordering for packing, works fine with just CSS.
Re:Show HN: Magic Grid – A simple JavaScript library for dyn... by catacombs on Monday December 24, 2018 @01:33AM (#18750785)
Thanks. This answers the very question I was about to post.