0
<script async src="https://cdn.ampproject.org/v0/amp-lightbox-0.1.js"></script>

I am using this tag in magento2 layout default.xml file and using <amp-lightbox>. But in google search console getting the error

Custom JavaScript is not allowed.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62

1 Answers1

1

It seems you're missing the custom-element attribute on your <script>.

Try using this:

<script async custom-element="amp-lightbox" src="https://cdn.ampproject.org/v0/amp-lightbox-0.1.js"></script>
fstanis
  • 5,234
  • 1
  • 23
  • 42