M2vH / galleriffic

Automatically exported from code.google.com/p/galleriffic
0 stars 0 forks source link

First image does not loading in Opera 11.01 #185

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Open any demo in newest Opera 11.01. It shows loading animation infinitely.

Original issue reported on code.google.com by paho...@gmail.com on 7 Feb 2011 at 8:59

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Yes, I also found this problem. In opera 11.01 the <div id="slideshow" 
class="slideshow"/> is empty. 
(I use jquery 1.4.4 . If you are use jquery 1.4.x, I recomment this: Issue 139)

I've made a fix for this problem:
in jquery.galleriffic.js, change this: (you find at the bottom)

        // Kickoff Image Preloader after 1 second
        setTimeout(function() { gallery.preloadInit(); }, 1000);

to this

        // Kickoff Image Preloader after 1 second
        setTimeout(function() { 
            gallery.preloadInit(); 
            if ($('.slideshow').html() == ''){ gallery.gotoIndex(0, false, true); }
        }, 1000);

good luck :)

Original comment by john...@gmail.com on 10 Feb 2011 at 5:03

GoogleCodeExporter commented 8 years ago
It worked for me, thanks!

Original comment by DG.Israe...@gmail.com on 19 Feb 2011 at 12:10

GoogleCodeExporter commented 8 years ago
Thanks. Works 4 me 2.

Original comment by agnis...@gmail.com on 14 Mar 2011 at 1:17

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Worked for me after I added a .trim()

// Kickoff Image Preloader after 1 second
        setTimeout(function() { 
            gallery.preloadInit(); 
            if ($('.slideshow').html().trim() == ''){ 
                    gallery.gotoIndex(0, false, true); 
                    }
        }, 1000);

Original comment by step...@mysideprojects.com on 7 Apr 2011 at 5:05

GoogleCodeExporter commented 8 years ago
God Bless your soul! You are a life saver, thank you so much for posting your 
solution and sharing the way out of the js/opera hell, thank you!

Original comment by PaulCati...@gmail.com on 11 Apr 2011 at 8:14