Pass: 0

8 thoughts on “Pronto variant”

  1. The pronto events stopped working after I upgraded to the latest version of Ajaxify. I have an Owl slideshow that I was triggering after a Pronto.render but is not longer working. Any help would be gladly appreciated. By the way, great plugin!!!

    1. Hi there,

      thanks for pointing that out. What was the last version that worked for you and which is the first version that has the bug?

      Thanks and regards, Arvind

      1. I don’t see to find the version number for the old version but I have the date I download it. September 25, 2020. Don’t know if that helps.

        This was my original code where I was reloading a custom.js which included the Owl slideshow and google adsense ads:
        $(window).on(‘pronto.render’, function(event, eventInfo){
        (adsbygoogle = window.adsbygoogle || []).push({});

        1. Hi,

          because of ajaxify migration to plain javascript, _trigger function was reworked and now you can catch those events with commands:

          window.addEventListener(“pronto.render”, fRender);
          window.addEventListener(“pronto.request”, fRequest);

          where fRender and fRequest are functions which are handling further.

          jQuery for some reason doesn’t react to those events but it should be the case. However, there is no cost of switching to vanilla js event listeners.

          Best regards,

          1. For your particular case that would mean changing of part “$(window).on” to “window.addEventListener”.

Leave a Reply

Your email address will not be published. Required fields are marked *

Show Buttons
Hide Buttons