• Resolved nitinsinghal

    (@nitinsinghal)


    Hi

    I am facing a weird issue with this plugin. As soon as I activate this plugin, jQuery stop working. I have created some onclick events, but all of them are not working now. As soon as I deactivate this plugin, they start working.

    I am not getting any error in console. Please see the below message in console.

    Powered by AMP ⚡ HTML – Version 2009112034002 http://dev.substancerehabcenter.com/

    AMP is still active on the above url, so that you can test.

    Please advise.

    Regards

Viewing 1 replies (of 1 total)
  • For performance reasons JavaScript has some restrictions in the AMP framework. To maintain valid AMP URLs the plugin removes custom JavaScript, while listing all such validation errors. You can choose to “Keep” these highlighted validation errors if you wish, although these URLs won’t be served as valid AMP URLs and therefore not eligible to be served from AMP cache.

    Another option if you have the resources is to make programmatic changes using amp-script or amp-bind.

    Alternatively you can use the plugin in transitional mode and deactivate AMP on the pages which you find are hard to achieve compatibility, or enable AMP on some templates only.

    You’ll find out more how the plugin works in our website FAQs page.

Viewing 1 replies (of 1 total)

The topic ‘jQuery has stopped working’ is closed to new replies.