Gravity forms code in <head> - Why so much code at the very top?

We’re doing some troubleshooting on our news site and noticed Gravity injects itself immediately at the top of the HEAD on the page.

We are using the latest version which defers the javascript but having a big chunk of code before meta data. Does it really need to be at the very top?

Any advice or suggestions would be greatly appreciated.

Hi Luc. The script is printed early in the <head> so that it is available on the page before other scripts are called. This change was made in Gravity Forms 2.5. If it’s causing you trouble, I recommend opening a support ticket here describing the issue:

Thank you.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.