AMP error in Google console
-
Hi,
Google console does not like this in the code. How can disable it for AMP?
<script>WebFontConfig={google:{families:["Open Sans:400,300,700&display=swap"]}};if ( typeof WebFont === "object" && typeof WebFont.load === "function" ) { WebFont.load( WebFontConfig ); }</script><script id="litespeed-webfont-lib" src="https://www.site.com/wp-content/plugins/litespeed-cache/assets/js/webfontloader.min.js" async></script><style amp-runtime="" i-amphtml-version="01210
Google says:
Custom JavaScript is not allowed.
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘AMP error in Google console’ is closed to new replies.