Skip to content

Trigger loading the script when using JS page transitions #60

@DESIGNfromWITHIN

Description

@DESIGNfromWITHIN

Hi,

Thansk so much for this plugin, I use it a lot and love it.
Recently I have been starting to use BarbaJS combined with MODX, it makes having very nice page transitions easy.
The issue now is that the Recaptcha wont 'trigger' when a page transitions using JS.

(I think it is simply not loading the needed JS triggered by the MODX plugin)
There is a solution shown here on BarabaJS website: https://barba.js.org/docs/advanced/third-party/#Google-ReCaptcha
But I would prefer to keep using the extra.

Do you have any idea how to trigger the recaptcha using recaptchav2 in a Javascript function? I could load that on page transition going to a page with a form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions