PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Move all scripts to end of the page

  1. Hey ya'll. Loving this plugin so far. Just a few little tweaks that I need to make to get it to work as I'd like on the site.

    I'm loading all (most) javascript at the bottom of the page, including jQuery. This means that the code block in the middle of the page that's attached to the form barfs.

    Is there anyway to easily move all of the scripts to the bottom of the page without modifying the core plugin files?

    And, how does the plugin work with jQuery 1.5/1.6?

    Here's a link to the test form without any styling. Still trying to get all of the scripts/styles to load properly so I can use Conditional Logic: http://rno1.com/test

    Many thanks,
    Jacob

    Posted 13 years ago on Monday May 9, 2011 | Permalink
  2. Gravity Forms is designed to work with the version of jQuery that ships with WordPress. It is dependent on it. WordPress 3.2 will introduce a newer version of jQuery and we will release a new version of Gravity Forms to address that compatibility as their are some changes we will need to make.

    There currently isn't a way to move all scripts to the footer. Depending on what features you are using, some code is output that requires the necessary jQuery to already be loaded. If it's in the footer, it isn't loaded yet and this causes the issue. There currently isn't an option to move this without changing core plugin files.

    Posted 13 years ago on Monday May 9, 2011 | Permalink
  3. Thanks for the quick response, Carl. I really appreciate it.

    So, if I conditionally load jQuery 1.4.2 in the header for my form page only, that should alleviate the issue, right? The rest of the jQuery dependencies should then load successfully?

    Thanks again,
    Jacob

    Posted 13 years ago on Monday May 9, 2011 | Permalink
  4. Yes that is correct.

    Posted 13 years ago on Monday May 9, 2011 | Permalink