Despite Galleria's image "preloading", changing images still results in a not-so-elegant flicker while the current image is removed and the requested image is inserted into the DOM. Here's a patch that simply delays the DOM manipulation until the requested image is fully loaded. In my opinion, it makes for a much smoother user experience.
| Comment | File | Size | Author |
|---|---|---|---|
| galleria_flicker.patch | 1.59 KB | eromba |
Comments
Comment #1
Mark Theunissen commentedPatch didn't apply, so I did it manually. Looks good! Hacking the original plugin makes me uneasy, but it looks fairly abandoned on the main site. No change since Feb 2008.
I'm not a jQuery expert, so I trust you to do the right thing here! Works in testing, so that's good... ;)
Just watch your editor, I think you're inserting tabs instead of Drupal's 2-spaces convention.
Thanks again!
Comment #3
specialt1272 commentedCan you please clarify this patch?
Dose Drupal need to be used for this to work?
If not, do I put it at the beginning of the galleria.js file or somewhere else?
What does the closing } after "else" go around?
Much much thanks for any help!!