Remove jQuery from Gravity Forms

Makes Gravity Forms submit forms using the built-in REST API and removes jQuery as a…

Author:aesal (profile at wordpress.org)
WordPress version required:5.0
WordPress version tested:6.1.1
Plugin version:1.1.1
Added to WordPress repository:08-10-2022
Last updated:22-11-2022
Rating, %:0
Rated by:0
Plugin URI:https://aesal.net/remove-jquery-from-gravity-...
Total downloads:605
Active installs:10+
plugin download
Click to start download

Gravity Forms is an excellent plugin for creating forms, but requires loading jQuery in the front-end for AJAX submissions to work. Obiously we would like to avoid a full reload on submission, but also not include JQuery in this day and age where vanilla JavaScript is so capable.

This plugin makes use of the built-in REST API in Gravity Forms, and uses that to submit the form and perform validation. File uploads and multi-page forms are supported.

By only using vanilla JavaScript, this plugin is 1.5kB (v1.1 minified and gzipped), compared to the 31kB of jQuery (3.6.1 minified and gzipped). A 95% reduction in size!