(function($, Drupal, drupalSettings) {
'use strict';
$('.form-submit[id^=edit-reset]').on('click keypress', function(e) {
e.preventDefault();
location.href = location.origin + location.pathname;
});
}(jQuery, Drupal, drupalSettings));
This script successfully reloads the page and clears the form as intended; however, an AJAX request is triggered just before the page reloads.