I am trying to find a dynamic Masonry layout library that generates an all image layout like pinterest.
I looked at masonry.js, colcade.js and similar cascading grid layout plugins, but they all need the images to load first before computing the grid, leading to a high cumulative layout shift (or a long loading time if the grid is built after all images are loaded).
I am looking for a recommendation of a javascript library that generated the responsive grid based on image height and width defined in the html.
Can you recommend a library?