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.
Is there a way to prepend a loading gif to Galleria? If so, what would need changing? The actual Galleria.js plugin or galleria.js.
This is what I would like to do:
I want galleria to display only after it has completely loaded the images as it looks really messy for a few seconds in IE.
Are there any ideas on how to acheive this: Hide the contents of Galleria first, then display a loading gif to indicate it is loading the contents?
Any suggestions on how to achieve this would be great!
Thanks
Comments
Comment #1
Mark Theunissen CreditAttribution: Mark Theunissen commentedI'm not sure, you may have more success getting support from the creators of the actual Galleria plugin for this task.
Comment #2
fallsemo CreditAttribution: fallsemo commentedThanks for the reply.
Yeah, I checked support off the Galleria forums and there's really only a loading bar solution but it requires Jquery UI and Jquery 1.3 :(
I tried wrapping the script with a loading.gif myself but for some reason, any version of IE continues to load galleria and does not complete - so I'm left with my loading.gif still spinning over the image.
This load issue even effects the sites example http://devkick.com/lab/galleria/demo_01.htm.
Comment #3
Mark Theunissen CreditAttribution: Mark Theunissen commentedYeah... sorry but it's a hugely frustrating issue for me trying to massage these things into working together. ;)
You could try looking at the Lightbox source and see how they implement their loading images. No doubt there's a trick somewhere.
Comment #4
fallsemo CreditAttribution: fallsemo commentedThat's a good idea.
I will post a follow up if I come up with a solution.
Thanks again
Comment #5
Mark Theunissen CreditAttribution: Mark Theunissen commentedComment #6
eromba CreditAttribution: eromba commentedMy patch for #436354: Galleria images load full size and stack down the page hides the image list before Galleria is loaded. You can also check out my patch for #444948: Galleria flickers when changing images, which makes image transitions smoother. Using them together, I bet you'll find that a loading animation isn't even necessary.