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

    (@playbuzz)

    Hi Dwdraju –

    Data is not a global variable on the website so that script will only work ONCE.

    The ajaxComplete runs every time there’s an ajax call, so it may render the plugin more than once, if there are ajax call still going on in the background.

    The following may work – it checks for URL changes, and only then tries to render the plugin. This also should avoid rendering the plugin twice, which the first script would’ve done, had it actually worked:

    <script>
    (function() {
    var url = document.location.toString();
    $(document).ajaxComplete(function() {
    var curUrl = document.location.toString();
    if(curUrl != url) {
    url = curUrl;
    window.PlayBuzz && PlayBuzz.core.render()
    }
    });
    })();
    </script>

    Let us know if this solves the issue, if not, we’re happy to troubleshoot further

Viewing 1 replies (of 1 total)
  • The topic ‘Ajax call blocks playbuzz; Reloads repeatedly’ is closed to new replies.