• Resolved trunks02

    (@trunks02)


    ampwp-98807fd6-d303-587a-923c-ebc10e906df3

    Hi,
    my advertising agency reports a problem to me.

    Sorry, but i’ve found another issue with amp <script> declaration: the publisher uses “nomodule“ attribute for amp scripts. It prevents RTC library calling from AMP files. Could you please ask the publisher don’t use the attribute for AMP scripts?

    link image code

    how can i fix it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @trunks02

    Thank you for contacting us, the type="module" and nomodule are standard attributes for the <link> tag.

    AMP plugin from version 2.1 adds both module and nomodule scripts.

    if the browser supports ESM module scripts (most modern browsers do) then the module script will be used the one has the extension .mjs the nomodule scripts are used

    If the browser doesn’t support ESM module scripts (old IE browsers) the ones with the extension .js will be used.

    So, both scripts are added considering module fallback

    You can disable ESM module script by using this mini plugin.

    Once the plugin is installed and activated clear any type of cache you are using so changes can reflect.

    I hope this is helpful!

    Thread Starter trunks02

    (@trunks02)

    Thanks! it seems to be working.

    Plugin Support Milind More

    (@milindmore22)

    @trunks02

    Glad our suggestion is helpful, I’ll mark this as resolved Open a new support topic if you face further issues, also feel free to leave a plugin review, we would love to hear your feedback.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Attribute nomodule error amp’ is closed to new replies.