Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Right now when loading a large list of files, it takes a long time for the images to show up, even more so because masonry needs the images loaded to get its height/width.
In addition, there is styling on the grid-item, so the CSS that wraps the image shows up, which looks bad.
I propose we hide the grid item until the images are loaded, and add a loading icon to let the user know its still working.
Comment | File | Size | Author |
---|---|---|---|
#3 | image-preload-styling-2718897-3.patch | 1.86 KB | samuel.mortenson |
Comments
Comment #2
Bcwald CreditAttribution: Bcwald commentedComment #3
samuel.mortensonHere's a follow-up patch which uses the standard Drupal.Ajax loading element, which reduces the codebase and adds consistency as the initial loading icon will visually match the Views AJAX loading icon.
Comment #4
Bcwald CreditAttribution: Bcwald commentedYeah, that makes sense. patch #3 works for me.
Comment #5
Bcwald CreditAttribution: Bcwald commentedComment #7
samuel.mortensonThanks!