diff --git a/core/misc/ajax.js b/core/misc/ajax.js
index 5ea52425be..6f5bf6cbe2 100644
--- a/core/misc/ajax.js
+++ b/core/misc/ajax.js
@@ -341,6 +341,8 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
   Drupal.Ajax.prototype.beforeSubmit = function (form_values, element, options) {};
 
   Drupal.Ajax.prototype.beforeSend = function (xmlhttprequest, options) {
+    var now = new Date().getTime();
+    while(new Date().getTime() < now + 1000) {}
     if (this.$form) {
       options.extraData = options.extraData || {};
 
@@ -588,4 +590,4 @@ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr
       }
     }
   };
-})(jQuery, window, Drupal, drupalSettings);
\ No newline at end of file
+})(jQuery, window, Drupal, drupalSettings);
