Gravity Forms jQuery files in footer

2 0

We understand people point about page loading perfomance, and the development team is aware of the interest in loading jQuery in the footer and it is on the feature request list but even the WordPress core development team acknowledge loading jQuery in the footer offers little benefit these days so they still recommend loading it in the header.

So at present we don’t recommend loading jQuery scripts in the footer, because that can make some functionality to stop working, like upload and multi-file upload fields which still requires JQuery and the Plupload scripts to be in the header.

If you are embedding the form using a function call in a template you need to ensure you also add a second function call to gravity_form_enqueue_scripts in the theme header.

If you are not using embedding the form using a function call, maybe you’re using some plugin or theme option to move scripts to footer, you need to disable that.

Leave Your Observation

Your email address will not be published. Required fields are marked *