You can’t use custom Javascript and Ajax in AMP, it will not validate.
A solution is: You can turn off AMP on those pages.
Regards Marqas
Thank you. I will follow up, it may be available in the future.
Regards Jozef
Yes, May be. Hope so ??