Support » Plugin: wBounce » wBounce loading before jQuery

  • Hi,

    I noticed that wBounce is added to wp_footer() with highest priority called ‘0’. Since I moved all scripts to the footer the plugin wBounce doesn’t work anymore because it is loading before jQuery.

    When changing the priority in class-frontend.php from 0 to 20 everything works fine, e.g.:

    add_action( 'wp_footer', array( $this, 'wp_footer'), 20, WBOUNCE_OPTION_KEY.'-functions' );

    What is the reason of this high priority? Is there any chance to change this setting to 20 to avoid this conflict?


Viewing 1 replies (of 1 total)
  • Plugin Author kevinweber


    Hi Paer,

    good point.
    However, for the included script jQuery is set as dependency so I would assume the order should be fine (because WordPress should automatically load jQuery before wBounce). Are you including jQuery “the WordPress way” using “wp_enqueue_script( ‘jquery’ )”?

    If yes, I’ll take a closer look and change the priority like you suggested.


Viewing 1 replies (of 1 total)
  • The topic ‘wBounce loading before jQuery’ is closed to new replies.