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.

CommentFileSizeAuthor
galleria_flicker.patch1.59 KBeromba

Comments

Mark Theunissen’s picture

Status: Needs review » Fixed

Patch 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!

Status: Fixed » Closed (fixed)

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

specialt1272’s picture

Status: Closed (fixed) » Needs review

Can 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!!