In getting rid of waste, don't also discard what is worth keeping. if (window.googletag) {googletag.cmd.push(function() { googletag.display('dcomMobileSERPDisplayTopAd-300x250'); });} else {console.error('googletag not defined, dcomMobileSERPDisplayTopAd-300x250');}