• Hi there,

    I get this error on google console:

    The mandatory attribute ‘type’ is missing in tag ‘amphtml module engine script’.

    Could you please fix it?!

    The page I need help with: [log in to see the link]

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

    (@milindmore22)

    Hello @mehrdadm

    Thank you for contacting us, it seems you are using a AMP in Reader Mode with Legacy Theme/

    You may be using a plugin that provides features such as HTML minification or HTML optimizations, that might remove the type="” attribute from <script> tag making it an invalid tag.

    Currently you have

    <script async="" src="https://cdn.ampproject.org/v0.mjs" crossorigin="anonymous"></script>

    it should be

    <script type="module" async="" src="https://cdn.ampproject.org/v0.mjs" crossorigin="anonymous"></script>

    Please note it’s missing type="module" creating AMP validation issue.

    We recommend turning off the HTML minification or HTML Optimization feature from other plugins.

    We hope the suggestion is helpful!

    Thread Starter Mehrdad Mohammadi

    (@mehrdadm)

    Thank you so much.

    There was a problem with WP Fastest cache premium plugin turning on extra HTML minification.

    I disabled it and fixed my problem.

    Plugin Support Milind More

    (@milindmore22)

    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 ‘The mandatory attribute ‘type’ is missing’ is closed to new replies.