Title: Version without jquery?!
Last modified: September 1, 2025

---

# Version without jquery?!

 *  [nicmare](https://wordpress.org/support/users/nicmare/)
 * (@nicmare)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/version-without-jquery-2/)
 * I’ve noticed your awesome plugin is the only one in my stack which still uses
   jquery which is really outdated. Are there any plans to drop jquery and use vanilla
   js ? this way my google page speed score would increase a bit. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [nicmare](https://wordpress.org/support/users/nicmare/)
 * (@nicmare)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/version-without-jquery-2/#post-18622299)
 * here is a suggestion provided by chatgpt. would you mind giving it a try?
 *     ```wp-block-code
       <script>/* globals wpa_field_info, fluent_forms_global_var_1 */var wpa_field_name, wpa_unique_id, wpa_add_test, wpa_hidden_field;document.addEventListener('DOMContentLoaded', function () {  wpa_field_name = wpa_field_info.wpa_field_name;  wpa_unique_id  = wpa_field_info.wpa_field_value;  wpa_add_test   = wpa_field_info.wpa_add_test;  wpa_hidden_field =    "<div id='altEmail_container' class='altEmail_container'>" +      "<label for='alt_s'>Alternative:</label>" +      "<input type='text' id='alt_s' name='alt_s'>" +    "</div>" +    "<span class='wpa_hidden_field' style='display:none;height:0;width:0;'>" +      "<label>WPA <input type='text' name='" + wpa_field_name + "' value='" + wpa_unique_id + "'></label>" +    "</span>";  wpa_add_honeypot_field();  if (typeof wpae_add_honeypot_field === 'function') {    // IF EXTENDED version exists.    wpae_add_honeypot_field();  }  if (wpa_add_test === 'yes') {    wpa_add_test_block();  }});function wpa_act_as_spam() {  var firstBtn = document.querySelector('span.wpa-button');  var actiontype = firstBtn ? firstBtn.dataset.actiontype : 'remove';  if (actiontype === 'remove') {    wpa_remove_honeypot_field();    document.querySelectorAll('span.wpa-button').forEach(function (btn) {      btn.dataset.actiontype = 'add';      btn.textContent = 'Acting as Spam Bot';    });  } else {    wpa_add_honeypot_field();    document.querySelectorAll('span.wpa-button').forEach(function (btn) {      btn.dataset.actiontype = 'remove';      btn.textContent = 'Act as Spam Bot';    });  }}function wpa_add_honeypot_field() {  // Combined form selectors  var allFormSelectors = [    // Main forms    'form.wpcf7-form, .wpcf7 form',        // CONTACT FORM 7    'form.wpforms-form',                   // WPForms    '.gform_wrapper form',                 // Gravity Forms    '.frm_forms form',                     // Formidable Forms    '.caldera-grid form',                  // Caldera Forms    '.wp-block-toolset-cred-form form',    // Toolset Forms    'form.cred-user-form',                 // Toolset Forms    'form.cred-form',                      // Toolset Forms    'form.et_pb_contact_form',             // Divi Form    'form.fb_form',                        // Divi Form Builder - Divi Engine    'form.elementor-form',                 // Elementor    'form.form-contribution',              // WooCommerce Reviews Pro    'form.cart',                           // WooCommerce Cart    'form#learn-press-checkout-form',      // LearnPress Checkout Form    'form.wpa_form',                       // Generic Class    '.wpa_form form',                      // Generic Class    '.um-form form',                       // Ulimate Membership Form    // Login forms    'form.spectra-pro-login-form',         // SPECTRA LOGIN FORM    'form#loginform',                      // Default Login Form    'form#edd_login_form',                 // EDD LOGIN FORM    'form.uwp-login-form',                 // USER WP LOGIN FORM    '.et_pb_login_form form',              // For Elementor login form    'form.eael-login-form',                // essential-addons login form    'form.user-registration-form-login',   // User Registration & Membership for WordPress    'form#lostpasswordform',               // Lost Password Form    'form.lost_reset_password',            // Tutor Password Form    'form.ur_lost_reset_password',         // User Registration & Membership for WordPress    // Registration Forms    'form.register',                       // User Registration & Membership for WordPress    // Comment forms    'form#commentform',                    // WP Comment with ID    'form.ast-commentform',                // Astra Comment Form with class    'form#fl-comment-form',                // Beaver Builder Theme Form with ID    'form.comment-form',                   // WP Comment with class    '.review-form form',                   // LearnPress Review    'form#edd-reviews-form',               // EDD Reviews with ID    'form.wpr-comment-form',    // BBPress forms    '.bbp-topic-form form',                // BBPress Topic Form    '.bbp-reply-form form'                 // BBPress Reply Form  ];  // Append hidden field to all forms in the combined selector list  var nodes = document.querySelectorAll(allFormSelectors.join(', '));  nodes.forEach(function (form) {    form.insertAdjacentHTML('beforeend', wpa_hidden_field);  });  // FOR FLUENT FORMS  document.querySelectorAll('form.frm-fluent-form').forEach(function (form) {    form.insertAdjacentHTML('beforeend', wpa_hidden_field);  });  document.querySelectorAll('.ff_conv_app').forEach(function (wrap) {    wrap.insertAdjacentHTML('beforeend', wpa_hidden_field);  });  // QUICK HACK FOR FLUENT FORMS CONVERSATIONAL  if (typeof fluent_forms_global_var_1 !== 'undefined') {    if (!fluent_forms_global_var_1.extra_inputs) {      fluent_forms_global_var_1.extra_inputs = {};    }    fluent_forms_global_var_1.extra_inputs[wpa_field_name] = wpa_unique_id;    fluent_forms_global_var_1.extra_inputs['alt_s'] = '';  }  // EOF FLUENT FORMS  // Insert after each input.wpa_initiator if its parent form doesn't have the hidden field yet  document.querySelectorAll('input.wpa_initiator').forEach(function (input) {    var form = input.closest('form');    if (form && !form.querySelector('.wpa_hidden_field')) {      input.insertAdjacentHTML('afterend', wpa_hidden_field);    }  });}function wpa_add_test_block() {  var checkingTest =    '<div class="wpa-test-msg">' +      '<strong>WP Armour ( Only visible to site administrators. Not visible to other users. )</strong><br />' +      'This form has a honeypot trap enabled. If you want to act as spam bot for testing purposes, please click the button below.<br/>' +      '<span class="wpa-button" onclick="wpa_act_as_spam()" data-actiontype="remove">Act as Spam Bot</span>' +    '</div>';  // Clear First  document.querySelectorAll('.wpa-test-msg').forEach(function (el) { el.remove(); });  // Insert after every span.wpa_hidden_field  document.querySelectorAll('span.wpa_hidden_field').forEach(function (el) {    el.insertAdjacentHTML('afterend', checkingTest);  });}function wpa_remove_honeypot_field() {  document.querySelectorAll('.wpa_hidden_field').forEach(function (el) { el.remove(); });  document.querySelectorAll('#altEmail_container, .altEmail_container').forEach(function (el) { el.remove(); });  if (typeof fluent_forms_global_var_1 !== 'undefined' && fluent_forms_global_var_1.extra_inputs) {    delete fluent_forms_global_var_1.extra_inputs[wpa_field_name];    delete fluent_forms_global_var_1.extra_inputs['alt_s'];  }}</script>
       ```
   
 *  Plugin Support [Dinesh Karki](https://wordpress.org/support/users/dcsupport/)
 * (@dcsupport)
 * [9 months, 1 week ago](https://wordpress.org/support/topic/version-without-jquery-2/#post-18622374)
 * Hi,
   We are already working on this and have added an option where user can decide
   if they want to use jquery or not. Is now in testing and should be release in
   few days. Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Version without jquery?!’ is closed to new replies.

 * ![](https://ps.w.org/honeypot/assets/icon-128x128.gif?rev=3093155)
 * [WP Armour - Honeypot Anti Spam](https://wordpress.org/plugins/honeypot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/honeypot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/honeypot/)
 * [Active Topics](https://wordpress.org/support/plugin/honeypot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/honeypot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/honeypot/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dinesh Karki](https://wordpress.org/support/users/dcsupport/)
 * Last activity: [9 months, 1 week ago](https://wordpress.org/support/topic/version-without-jquery-2/#post-18622374)
 * Status: not resolved