Uncaught ReferenceError: wp_localize_script_autocomplete is not defined
- BodavParticipant3 years ago #27924
hi,
i enabled the suggestions option, and in incognito i get this js error:
https://snipboard.io/Rdzn7q.jpgshould i exclude this file from cache or any known issue?
wpsolrKeymaster3 years ago #27927Please replace your current WPSOLR version with this release, and clear your caches: https://www.dropbox.com/s/hqj4ia77jloh3rd/wpsolr-pro-fix-js-when-html-optimised.zip?dl=0
The release includes the following fixes/improvements:
– Prevent wp_localize_script_autocomplete javascript error when HTML is optimisedBodavParticipant3 years ago #27932still got js error, but changed a bit, cleared caches of course.
https://snipboard.io/styrNW.jpgwpsolrKeymaster3 years ago #27937I could replicate the issue with WP Rocket deferred js loading, but could not find a quick fix.
Try to add exclusions on file autocomplete_solr.jsAdded to roadmap: https://trello.com/c/HIO2YKFA/179-fix-issue-with-deferred-js-loading-with-wp-rocket
BodavParticipant3 years ago #27940ok fixed it for now, with excuding jquery from delay and deffer, just use this string in wp rocket exclude on deffer and delay js:
/jquery-?[0-9.](.*)(.min|.slim|.slim.min)?.js
screenshot
https://snipboard.io/Bc3uvl.jpg
You must be logged in to reply to this topic.