Load all of GravityForms JS in footer

I’m using Sage and thought this might be useful to someone:

I found that using Gravity Forms’ suggested method , gform_init_scripts_footer, for loading JS in the footer only works for SOME of the outputted JS. The result is forms that fail to submit.

Luckily, found this article with a solution.

The working code is here in a gist for you.