Title: Inline script not loading on preview
Last modified: February 16, 2022

---

# Inline script not loading on preview

 *  Resolved [Joe Fawley](https://wordpress.org/support/users/notrob0t/)
 * (@notrob0t)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/inline-script-not-loading-on-preview/)
 * 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](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/inline-script-not-loading-on-preview/#post-15372499)
 * Hi [@notrob0t](https://wordpress.org/support/users/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](https://wordpress.org/support/users/notrob0t/)
 * (@notrob0t)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/inline-script-not-loading-on-preview/#post-15373124)
 * Hey [@nosilver4u](https://wordpress.org/support/users/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](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/inline-script-not-loading-on-preview/#post-15376446)
 * Certainly, you can send it via [https://ewww.io/contact-us/](https://ewww.io/contact-us/)(
   we prefer that anyway, especially if we need to do more debugging)
 *  Thread Starter [Joe Fawley](https://wordpress.org/support/users/notrob0t/)
 * (@notrob0t)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/inline-script-not-loading-on-preview/#post-15378584)
 * Great, thank you! I’ve sent it over.
 *  Plugin Author [Shane Bishop](https://wordpress.org/support/users/nosilver4u/)
 * (@nosilver4u)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/inline-script-not-loading-on-preview/#post-15411833)
 * 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](https://wordpress.org/support/users/notrob0t/)
 * (@notrob0t)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/inline-script-not-loading-on-preview/#post-15483009)
 * Hi, thanks [@nosilver4u](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/ewww-image-optimizer/assets/icon-256x256.png?rev=1582276)
 * [EWWW Image Optimizer](https://wordpress.org/plugins/ewww-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ewww-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ewww-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ewww-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ewww-image-optimizer/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Joe Fawley](https://wordpress.org/support/users/notrob0t/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/inline-script-not-loading-on-preview/#post-15483009)
 * Status: resolved