WordPress.org

Forums

[Plugin: Promotion Slider] When site minimized, slider catches up (17 posts)

  1. ShibbySolutions
    Member
    Posted 3 years ago #

    I have the slider working on my front page.
    Whenever i minimize the site, when i return it the slider auto advances really fast as if to catch up with what it lost.
    In Chrome it advances really fast and in IE it changes a couple of slides and returns to it's regular course.

    Help anyone?
    link to site:
    http://www.shibby.co.il

  2. Micah Wood
    Member
    Posted 3 years ago #

    Shibby,

    This is a known issue and is a bug in jQuery. I am working on a fix, but you can read more about it here: http://wordpress.org/support/topic/slider-is-flashing-and-showing-several-pictures-at-once?replies=11

  3. ShibbySolutions
    Member
    Posted 3 years ago #

    Thanks for the quick reply.
    Will wait for the next update, and by the way very nice plugin thank you very much for making it.

  4. ericholsinger
    Member
    Posted 3 years ago #

    I added the following to the if (autoadvance) block and it seems to be a bit more sane...

    if( autoAdvance ){
    
    	  $(window).focus(function(event){
    	    sliderInterval = setInterval(function(){progress('forward', currentSlider, panelCount);}, (timeDelay * 1000));
    	  }).blur(function(event){
    	    clearInterval(sliderInterval);
    	  });
       ....
    
    }
  5. angelajude
    Member
    Posted 3 years ago #

    @ericholsinger

    What file/where did you add that code?

  6. ShibbySolutions
    Member
    Posted 3 years ago #

    eric this kinda of worked, not exactly sure but sometimes it still does it but sometimes it does. Thank you!

    and angelajude, put it in the js/promo_slider.js file

  7. ericholsinger
    Member
    Posted 3 years ago #

    That's correct (promo_slider.js, via plugin editor).

    And that is also correct that it does seem to still do the catch up on animations, esp in FF. I tested a few browsers and decided it was better than without it, for me.

  8. mattjwcollins
    Member
    Posted 3 years ago #

    I'm having the same problem, but it is more the excerpts that are overlapping rather than the images.

    I've tried turning pause on mouse hover off, and I've tried adding this code, which just stopped the slideshow entirely for me.

    Any help? website is: http://www.dev.mana-music.com/

  9. yuanbatou
    Member
    Posted 3 years ago #

    ericholsinger's solution helps, thanks!

  10. Tom
    Member
    Posted 3 years ago #

    Doesn't seem to fix the flashing problem for me. See for yourself: mrfundoo.co.uk

    Which line number did you insert this? Perhaps that has something to do with it

  11. ericholsinger
    Member
    Posted 3 years ago #

    Tom, I placed code inside the autoAdvance conditional, right after the opening brace.

    The ellipses (...) were meant to indicate 'the rest of the original code'.

    It may not work in all cases. I've seen it misbehaving even after my code change. But, it appears to alleviate the wonky behavior in some browsers.

  12. lizenergy
    Member
    Posted 3 years ago #

    I have the same experience as mattjwcollins

    Please continue to update if anyone finds the fix.

    Thanks!

  13. trevelations
    Member
    Posted 3 years ago #

    ericholsinger's code made it better for me (not 100%), but also killed my dropdown menu which I'm using jquery megamenu for in the process :S

    @Woodent: any news on a fix for this?

    Thanks!

  14. Micah Wood
    Member
    Posted 3 years ago #

    The latest is that the next version of jQuery has fixed this bug. I would use Google's API to swap out jQuery on the front end of your site with the more recent version. I will be implementing this in the next release.

  15. carlclancy
    Member
    Posted 3 years ago #

    "I would use Google's API to swap out jQuery on the front end of your site with the more recent version."

    can someone please explain how to do this? or point me in the direction of a good tutorial? i'm using a thematic child theme if that makes a difference.

    thanks.

  16. Tom
    Member
    Posted 3 years ago #

    @Carlclancy here you go... add this to your theme's functions.php file:

    // Stop loading WP jQuery and load it via Google instead.
    if (!is_admin()) {
    	wp_deregister_script('jquery');
    	wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false);
    	wp_enqueue_script('jquery');
    }
  17. carlclancy
    Member
    Posted 3 years ago #

    great stuff, thanks tom!

Topic Closed

This topic has been closed to new replies.

About this Topic