terminal42 / contao-ajaxform

Submit a form through ajax and display error or confirmation message.
14 stars 7 forks source link

Place JS in end of HTML body instead of direct in the form #12

Closed GMTeams closed 5 years ago

GMTeams commented 6 years ago

Is there a chance to load the JS in end of HTML body?

For better performance I have jQuery in end of body and now I'm getting an error because the JS of ajaxform is loaded before jQuery is loaded.

Thanks.

Toflar commented 5 years ago

I think now that I've reworked it to use vanilla JS, that's not an issue anymore :)