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' );


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!