I created a carousel with views and placed it on a (panel page) on the home page. When the page is loading the carousel does not load and loads as a list trailing down the page. Once the page loads the carousel is fine. This is a major bug that I see everytime I use this module.
Any ideas on a fix or updated module patch for this. I have seen many posts about this issue with no real resolution...
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | jcarousel-fix_FOUC-1681538-5.patch | 926 bytes | Ogredude |
Comments
Comment #1
back from 7 commentedWhere are the maintainers of this project? Should this project not be listed as abandoned? This is a big issue and there is no specific guidance or documentation leading to a solution...
Comment #2
dukem commentedHere is a quick and straightforward solution I used:
1. At includes/jcarousel-view.tpl.php add 'style="display:none;"' to the li tag:
So the li's are hidden from the beginning.
2. At js/jcarousel.js add one string:
So the li's are shown after page load.
Also you can modify the tpl file so the first element is shown, and others are hidden.
Comment #3
back from 7 commentedDude you are AWESOME! THIS WORKED BEAUTIFULLY AND TOTALLY SAVED MY LIFE! Kudos to you bro!!!
Comment #4
Anonymous (not verified) commentedGreat WORK !!
Thanks alot ...
Comment #5
Ogredude commentedThanks, Dukem, this fixed the FOUC nicely.
Here are the changes from #2 packaged as a patch on the 7.x-2.x branch.
Comment #6
phenaproximaThe patch in #5 works gloriously for me.
Comment #7
hwasem commentedThis is FANTASTIC! Thank you so much for the suggestion and then the actual patch. Works great!
Comment #8
back from 7 commentedWhere is the new updated 7.x version? There is none...
Comment #9
sittard commentedPlease commit patch #5 to the 7.x-2.x branch. It works brilliantly.
Comment #10
dgtlmoon commentedComment #11
markpavlitski commentedRemoving inappropriate tags.
Comment #12
markpavlitski commentedCommitted! http://drupalcode.org/project/jcarousel.git/commitdiff/1d918b9
Comment #14
advernut commentedThank you for the commit! This solution fixed it for me too. But why isn't it updated on the jcarousel module project page? Last version says 2011-Nov-24. Just wondering.
Comment #15
markpavlitski commented@advernut This has been committed to the development branch, 7.x-2.x. We're working towards a new stable release, hopefully in the next few weeks, which will include this fix.
Comment #16
kappaluppa commentedThis is helpful because when the carousel loads it is all in place. But in my case I have several (6 )carousels and that's the majority of the page. so while I am waiting for all the carousels to load, the page is blank. Any suggestions/solutions/remarks on this?
Thanks