Gravity Form + swup.js

I am developing a web project on wordpress and I am using the swup.js library for page transactions.
I have this problem:
if I enter the page where the form is loaded it works correctly if I browse the site and then enter the form page it does not work(no validation , no submit).
How can I initialize the form with ajax call like form body ?
I had replaced the form with ajax but I can’t load the scripts needed to make it works.
What functions do I need to reinitialize the scripts after page loaded via ajax?


Any solutions?