You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Error Handling Enhancement: Modified the script to address an issue with options.data.indexOf causing a TypeError when options.data was not a string, by adding type checks and conversions for object and FormData instances.
Enhanced AJAX Data Handling: Improved the handling of options.data to gracefully handle various data types (string, object, FormData) without breaking other scripts or forms, especially when submitting a contact form.
Selective Spinner Display for AJAX Requests:
Added explicit checks to display the spinner for FormData instances, typically associated with form submissions.
Ensured that AJAX requests with non-standard data types fail gracefully, avoiding script errors and allowing other scripts to run smoothly.
Heartbeat API Ignoring Logic: Refined the logic for ignoring WordPress heartbeat API calls to prevent unnecessary display of the loader overlay during such background requests.