• Resolved Fabio Lobo

    (@fabiolobo)


    This plugin is affecting AMP too.

    Example: if I insert “cdn” on the keyword list, the plugin will change this:

    <script type='text/javascript' src='https://cdn.ampproject.org/v0.js' async></script>

    To this:

    <script type='text/javascript' async data-type="lazy" data-src="https://cdn.ampproject.org/v0.js"></script>

    This generates an error and the URL is not approved ;\

    Can you prevent the plugin from making changes to URLs with AMP? I’m using the official AMP plugin for WordPress.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gijo Varghese

    (@gijo)

    @fabiolobo I’ll consider this in the future updates. But you should add a keyword that is more unique. The “cdn” might be used by a lot of scripts.

    For example if you want to delay a script “cdn.facebook.com/sdk/events.js”, instead of putting “cdn”, add “events.js”.

    Thread Starter Fabio Lobo

    (@fabiolobo)

    @gijo Thanks! In that specific case the keyword “cdn” was the best option (lazy who?).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘AMP errors’ is closed to new replies.