Loading Gravity Forms with Aggressive Compiling


Ran into an issue with Gravity Forms where the form had conditional logic and compressing was set to "Aggressive" - the form would not load because Gforms looks for the .js file for conditional logic in the header.

Adding the following script to functions.php file fixed this issue:

add_filter( 'gform_init_scripts_footer', '__return_true' );

https://www.gravityhelp.com/documentation/article/gform_init_scripts_footer/


Hey Kamron, thanks for sharing 🙂

Gravity Forms enqueue some of their script in a rather "unconvetional" way causing conflicts with Beans aggressive compiling. When you set Agressive it will output all the JS in the footer which is the only difference between Standard and Agressive.

Unfortunately there is not much we can do with plugins not following WordPress standards 🙁

Have fun,

Write a reply

Login or register to write a reply, it's free!