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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Bcwald created an issue. See original summary.

Bcwald’s picture

samuel.mortenson’s picture

Status: Active » Needs review
FileSize
1.86 KB

Here'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.

Bcwald’s picture

Yeah, that makes sense. patch #3 works for me.

Bcwald’s picture

Status: Needs review » Reviewed & tested by the community

samuel.mortenson’s picture

Status: Reviewed & tested by the community » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.