Post
by deleted user » Sat Mar 17, 2018 11:12 pm
1) Core enqueues media with relative paths, so unsetting an absolute URL won't work
2) Instead of blindly removing media, you should understand what caused it to be loaded first to understand what capabilities you may be breaking by unloading a requested asset
3) In core, there are only two places where the autocomplete script is loaded; the Smart Search results page and the Smart Search module, both of which require this script to make the autocomplete suggestion functionality work, and both of which have an option to disable this feature from the backend (check either the menu item for your search results or the module's configuration). If you don't want the autocomplete script to load, then turn off the feature in the backend, this will prevent there being other JavaScript errors on your site because other script declarations are relying on the autocomplete script to be loaded.