• Resolved Joe Fawley

    (@notrob0t)


    Hi, I’m experiencing a problem with images not displaying on post and page previews.

    It looks like a script isn’t getting loaded in, causing lazyload and webp loading not to work (console shows ewww_webp_supported is not defined).

    When I compare to published content (which all works fine), I can see the following tag isn’t present:

    <script data-cfasync=”false” type=”text/javascript”>var ewww_webp_supported=!1;etc…

    Not sure what to try to resolve this?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Shane Bishop

    (@nosilver4u)

    Hi @notrob0t,
    Are you also using JS WebP? If you could provide the debug information from the support tab (via pastebin.com), that would be helpful to replicate the issue and see what is going on with the previews.

    Also, can you confirm that this is on the standard/core WP “preview page/post” functionality?

    Thread Starter Joe Fawley

    (@notrob0t)

    Hey @nosilver4u thanks for the reply.

    Yes, I have JS WebP Rewriting setting enabled, and these are previews of posts and pages in core WordPress – classic editor not Gutenberg.

    Is there a way I can send you the debug log directly, as this is a client’s sites so would like to avoid a pastebin.

    Thank you!

    Plugin Author Shane Bishop

    (@nosilver4u)

    Certainly, you can send it via https://ewww.io/contact-us/ (we prefer that anyway, especially if we need to do more debugging)

    Thread Starter Joe Fawley

    (@notrob0t)

    Great, thank you! I’ve sent it over.

    Plugin Author Shane Bishop

    (@nosilver4u)

    For anyone else with a similar issue, it looks to be potentially a “custom” preview mode. Do let us know if you figure out anything on why is_preview() wasn’t working there.

    Thread Starter Joe Fawley

    (@notrob0t)

    Hi, thanks @nosilver4u – yes just to confirm that this turned out to be a theme specific issue that I’m now in the process of diagnosing.

    Appreciate your help looking into this. I will update if I find the specific problem in case it helps anyone else in the future.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Inline script not loading on preview’ is closed to new replies.