Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Mobile search giving an error "response data is missing" › Reply To: Mobile search giving an error "response data is missing"
Hi,
Thanks for the details!
Looking at the source it seems like wp-rocket script deferring is causing the issue. It wraps the inline section of the script in the following function:
window.addEventListener('DOMContentLoaded', function() {
That completely breaks the functionality. I googled around, and looks like they are doing it intentionally. I understand what the initial purpose of this is, but this is an extremely bad practice with a very bad outcome. I found the information here: https://docs.wp-rocket.me/article/1265-load-javascript-deferred#technical
Please either turn off this feature, or add our plugin script to the exceptions:
/jquery.ajaxsearchpro*.min.js