Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Progressive loading and using a pager #218

Open
jamesmehorter opened this issue Jun 16, 2013 · 2 comments
Open

Progressive loading and using a pager #218

jamesmehorter opened this issue Jun 16, 2013 · 2 comments

Comments

@jamesmehorter
Copy link

I've found one of those edge cases where I'm using progressive loading, and the design calls for a pager. It appears the pager only works once the slide in question has been downloaded. If I use the 'pagerTemplate': "<figure></figure>" method, each slide's pager only displays once it has been downloaded progressively. I would argue that all pagers should be displayed on initial load, and when the user clicks the pager, the chosen slide should load 'on demand', identical to the behavior seen when the slideshow is progressing normally. Hope this helps!

<section id="slideshow">
    <div class='slide'><img width="1155" height="535" src="http://localhost/wp-content/uploads/an-image.jpg" /></div>
    <div id="pager"><!-- css is used to overlay the pager on top of the slides, and to stylize the <figure>'s within -->
        <figure></figure>
        <figure></figure>
        <figure></figure>
    </div>
</section>

<script type="text/javascript">
    //Load jQuery
    (function($){
        //Homepage Slideshow 
        $('#slideshow').cycle({
            'progressive': slideshow_slides,
            'auto-height': 'calc',
            'loader': true,
            'fx': 'fade',
            'slides': '> div.slide',
            'speed': 750,
            'pager': '#pager',
            'pagerActiveClass': 'active',
            'pagerTemplate': '',
            'pauseOnHover': true
        })

        //Slideshow slides (Only includes slide #2 and on - slide #1 is added directly in markup
        var slideshow_slides = ["<div class='slide'><img width=\"1155\" height=\"535\" src=\"http:\/\/localhost\/wp-content\/uploads\/blurred-birches.jpg\" \/><\/div>","<div class='slide'><img width=\"1155\" height=\"535\" src=\"http:\/\/localhost\/wp-content\/uploads\/IMG_0601-1155x535.jpg\" \/><\/div>"];
    })(jQuery)
</script>

@drrobotnik
Copy link

+1 uproar

It's become an issue since fullscreen galleries are becoming more common.

@EricM81
Copy link

EricM81 commented Sep 23, 2013

Take a look at this:

#300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants