Skip to content

Regrade

Choose a tag to compare

@zerosonesfun zerosonesfun released this 04 Mar 11:31
· 29 commits to main since this release
8e56d91
  • 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.