I help look after a site which uses
$settings['file_public_base_url'] to serve files from a different subdomain on the frontend, but on the backend (admin paths like
node/edit) this causes our JS to be loaded with absolute rather than relative URLs which seems to cause an issue with JS loaded via AJAX not executing correctly. There are no JS errors in my devtools console, but I suspect the cause is that the JS is being loaded from differing subdomains, as turning AdvAgg and core's JS aggregation off makes the JS files load via relative paths and function as intended.
Without any errors showing in my console or server logs I'm not sure I'm going to be able to get to the bottom of the AJAX issue, so for now a compromise seems to be to turn off aggregation for admin and content editing routes.
What would be the best way to do that? I know I can set
$config['system.performance']['js']['preprocess'] = FALSE; and presumably a similar config key for AdvAgg's own setting (we have AdvAgg set to optimise/compress JS, so even with
system.performance.js.preprocess turned off AdvAgg will still manage the files and use absolute paths to include them. Can config settings be altered on a per route/path basis?