• Resolved shapingart

    (@shapingart)


    I notice that the first time you go to this page the schedule does not load but when you refresh it loads again?

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Stefan Moonen | Momoyoga

    (@momostefan)

    Hi, thank you for reaching out about your issue with the schedule.

    The issue is caused by the fact that the theme on your website uses some form of AJAX to load pages from the menu, and the Momoyoga plugin then doesn’t know when to load the schedule.
    If you open the URL directly in your browser, for example by clicking the link in your post, you’ll notice it will load immediately.

    If there’s a way to load the page with the schedule without using AJAX (not asynchronously) then we suggest doing that. Unfortunately I’m unfamiliar with this theme so I cannot offer further support in that regard.

    We are looking into a way that makes asynchronous loading possible, but we don’t have a time schedule for it yet.

    Warm regards,
    Stefan, Momoyoga

    Thread Starter shapingart

    (@shapingart)

    Is there some kind of code we could add to the plugin or shortcode that would make it load or refresh the page for instance so it loads?

    Thread Starter shapingart

    (@shapingart)

    Or add some code to just that page to make it load a different way? I notice there are these ajax options in the customize section of wordpress. I’m not sure sure if this would help but here are some of the options they have:
    -Enable seamless AJAX transitions ON/OFF
    -Prevent elements from being AJAX triggered jQuery selectors. Example: [data-elementor-open-lightbox], .myPreventClass

    I tried turning off AJAX transitions and it didn’t help fix the issue.

    Thread Starter shapingart

    (@shapingart)

    Maybe it did help actually. Can you test in another browser? Seems to be loading for me now.

    Thread Starter shapingart

    (@shapingart)

    Okay so when I enable seamless AJAX transitions to OFF it seems to work but then other things don’t work. There is an option here and I’m wondering if we can add some code to make it work:
    “Custom JavaScript code The code inserted below will be executed after each AJAX transition. This may be useful for compatibility with 3rd party scripts.”

    Plugin Author Stefan Moonen | Momoyoga

    (@momostefan)

    Hey, there is actually a piece of code that you could add that would fix this:

    jQuery('*[data-momo-schedule]').each(function(index)
    {
        new momoyoga.Schedule(jQuery(this));
    });

    This would make the schedule appear again if it’s not showing after a page load.
    I’ve also researched a way that would allow AJAX-enabled websites to always load the schedule and I think we can include this in the next version. I will let you know when it’s there so you can remove this piece of code again.

    Thank you for helping resolve this!
    Warm regards, Stefan

    Thread Starter shapingart

    (@shapingart)

    Awesome! That worked great!

    Plugin Author Stefan Moonen | Momoyoga

    (@momostefan)

    Great, good to hear!
    I will resolve this for now, keep an eye out for updates.

    Warm regards, Stefan

    Plugin Author Stefan Moonen | Momoyoga

    (@momostefan)

    We have just released version 2.4.0 of this plugin, which should initialise itself again after AJAX requests. This would make the extra code unnecessary.

    It would be great if you could check if this also solves the issue you had on your website and let us know!

    Warm regards,
    Stefan from Momoyoga

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘The schedule only loads the second time that the page is refreshed’ is closed to new replies.