Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How to stop last image in slideshow sometimes flashing first on page load.

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #40549

    Hi guys,

    I’m using flexslider for multiple slideshows on a site I’m currently working on, on one of the pages it’s sometimes flashing the last slide before the first slide on the page load. How can I stop this?

    The problem page is: http://debourg-dev.ch/syselcloud/

    Many thanks

    #113074
    chrisburton
    Participant

    You’re most likely going to have to set the images to display: none until flexslider loads.

    #113079
    Taufik Nurrohman
    Participant

    Or, run the plugin after page load.

    #113095

    using jQuery(document).ready(function($) { doesn’t seem to make any difference though?

    #113115
    Taufik Nurrohman
    Participant

    Not .ready(), but .load(). .ready() is different with .load()

    $(window).load(function() {
    // ...
    });
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.