Support » Plugin: AMP » Delay redirect AMP page

  • Resolved fabioweb

    (@fabioweb)


    Why is there a few second delay to go from main domain to the /amp page? Please let me know can we reduce the redirection time.
    Thanks

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

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

    (@milindmore22)

    Hello @fabioweb

    You may be using Rocket Loader script which delays all javascript execution until the page fully renders/ loads. AMP plugin uses client-side redirection which is based on javascript.

    I will recommend checking if you can disable Rocket Loader for the redirection script.

    alternatively, switch from client-side redirection (the default) to server server-side redirection. This can be done with the following mini plugin: https://gist.github.com/westonruter/e5032d805625f0f743237708c43d3783

    Client-side redirection is the default because it is the most compatible across WP installs. If you have a page caching plugin you may need to adjust it when using server-side redirection.

    Thread Starter fabioweb

    (@fabioweb)

    Okay thanks i disabled rocket loader on cloudflare. So this should be enough?
    Thanks

    Plugin Support Milind More

    (@milindmore22)

    hello @fabioweb

    Yup that should be enough, I see improvements in redirection time.

    Thread Starter fabioweb

    (@fabioweb)

    yeah perfect thanks 🙂
    I’ve also enable this option https://ibb.co/w4f8gK2
    Should resolve the google cache issue?
    Regards

    Plugin Support Milind More

    (@milindmore22)

    Hello @fabioweb

    Enabling AMP Real URL may not resolve the AMP cache issue, as AMP Real URL serves content from AMP Cache, it just retains your website URL.
    You can read more about it here.

    Plugin Support Milind More

    (@milindmore22)

    I hope my suggestion regarding Rocket loader has resolved your issue with delayed redirection, I will mark this issue resolved, feel free to open a new support topic in case you need further assistance.

    Be sure to share your experience of using the AMP plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.