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
  • #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:

    Many thanks


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

    Taufik Nurrohman

    Or, run the plugin after page load.


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

    Taufik Nurrohman

    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.