Problem with google maps

First and foremost try to identify what is breaking things by just disabling CSS or JS or HTML or Image optimization (incl. lazyload). Based on that we can see what the next steps need to be 🙂


Hi Frank
Thank you very much for getting back to me.

Disabling html or css doesnt help.

Disabling lazy load doesnt help either.

Disabling aggregate js files fixes the problem but slows my website down considerably.

Is there anyway to exclude the url from Autoptimize so that I can have the best of both worlds?

Thank you

Best regards


sure, you can use this code snippet to disable AO on contact-us;

function contact_noptimize( $flag_in ) {
	if (strpos($_SERVER['REQUEST_URI'],'contact-us')!==false) {
		return true;
	} else {
		return $flag_in;

Hi Frank

Thank you very much!!

That fixed the problem without any loss of speed.- BRILLIANT!

Autoptimize is by far the best optimization plugin with the best support.

Thanks once again.

Best regards


Latest posts