Title: PictureFill no longer working (https/CloudFlare/VWO)
Last modified: August 22, 2016

---

# PictureFill no longer working (https/CloudFlare/VWO)

 *  [Jon Brown](https://wordpress.org/support/users/jb510/)
 * (@jb510)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/picturefill-no-longer-working-httpscloudflarevwo/)
 * I just noticed PictureFill is no longer working for me. I’m not exactly sure 
   when it stopped working.
 * This is hosted on WPE and in the last month or so we did several things that “
   could” have broken things, I’m just wondering if you know any of these to be 
   a known conflict?
 * 1) We re-enabled CloudFlare (free, so none of the cool polish/mirage stuff), 
   but I think it does async load and lazy load some assets.
 * 2) We also used WordPress HTTPS to force the admin to SSL using CloudFlare’s 
   flexible SSL
 * 3) Unbeknownst to me until I started typing this apparently the client installed
   Visual Web Site Optimizer.
 * Here’s the thing. Disabling CloudFlare, WordPress HTTPS and VWO had no affect.
   PictureFill still didn’t work. I’m 99% sure picturefill was working at some point
   so I tried rolling back to 2.6 but that didn’t fix things either.
 * Changing to Retina.JS _did_ work, but obviously I’d rather use PictureFill if
   I could figure out what the conflict was and resolve it.
 * Any ideas?
 * [https://wordpress.org/plugins/wp-retina-2x/](https://wordpress.org/plugins/wp-retina-2x/)

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

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/picturefill-no-longer-working-httpscloudflarevwo/#post-5855703)
 * I believe the problem comes from CloudFlare lazy load. Try disable it, clear 
   your caches and try again. It should be fine.
 * In case you need lazy load maybe you should check the box to avoid loading the
   PictureFill script (plugin options) and replace it manually (in your theme functions.
   php code) by loading this one : [https://github.com/aFarkas/lazysizes](https://github.com/aFarkas/lazysizes)
 * Lazysizes seems to support PictureFill and will also lazily load the images. 
   That looks awesome but I didn’t try yet.
 * It would be really nice it you could try this. If it works for you, then I might
   also include this script and lazy-load as an option in the plugin 🙂
 *  Thread Starter [Jon Brown](https://wordpress.org/support/users/jb510/)
 * (@jb510)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/picturefill-no-longer-working-httpscloudflarevwo/#post-5855998)
 * Jordy – Finally got around to testing this. No luck unfortunately.
 * CF disabled. WP Cache cleared between each test.
 * With picturefill enabled and debug mode on I still don’t get 2x replacements.
   Log just shows this:
 *     ```
       2015-03-16 15:42:04: 0/0 were replaced.
       2015-03-16 15:42:24: * HTML REWRITE FOR PICTUREFILL
       2015-03-16 15:42:31: * HTML REWRITE FOR PICTUREFILL
       2015-03-16 15:42:33: * HTML REWRITE FOR PICTUREFILL
       2015-03-16 15:42:38: * HTML REWRITE FOR PICTUREFILL
       2015-03-16 15:42:38: 0/0 were replaced.
       ```
   
 * for each page load. No errors in the console.
 * I tried pro and lazysizes, but that didn’t make any difference. (not $5/y for
   5 sites is way too cheap, but I don’t like that it sets up a recurring payment).
   
   FWIW here’s what I did: 1) enabled lazysizes, bought pro. purged everything, 
   reloaded, no 2x images 2) disabled picturefill loading (wasnt’ sure if this needed
   to be done manually or having lazysizes enabled did that) purged everything, 
   reloaded, still no 2x images
 * The only thing I can think of it it doesn’t like that my dashboard being in SSL
   and the most of the front end being non-SSL. Maybe the WordPress HTTPS plugin
   is breaking things. The Images are all loaded without a protocol identifier from//
   domain_com/wp-content/ I tried loading one of the front end SSL member pages,
   but it still didn’t get an image replacement, so maybe that’s not it.
 * Went back to Retina.js and 2x is again working fine.
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/picturefill-no-longer-working-httpscloudflarevwo/#post-5856002)
 * Okay, that’s because my html rewriting part (which is also run for PictureFill)
   cannot find your images. I feel sorry you did so much testing, actually the “
   0/0 were replaced.” is really where the problem is.
 * I need the HTML code you are using in one of your post / page. For some reason
   this HTML cannot be processed well by the plugin and maybe it should. I will 
   check this.
 *  Thread Starter [Jon Brown](https://wordpress.org/support/users/jb510/)
 * (@jb510)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/picturefill-no-longer-working-httpscloudflarevwo/#post-5856004)
 * No worries. I’ll send you some links and code gists via email.
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/picturefill-no-longer-working-httpscloudflarevwo/#post-5856005)
 * Okay 🙂

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

The topic ‘PictureFill no longer working (https/CloudFlare/VWO)’ is closed to new
replies.

 * ![](https://ps.w.org/wp-retina-2x/assets/icon-256x256.png?rev=2597316)
 * [Perfect Images: Regenerate Thumbnails, Image Sizes, WebP & AVIF](https://wordpress.org/plugins/wp-retina-2x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-retina-2x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-retina-2x/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-retina-2x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-retina-2x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-retina-2x/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/picturefill-no-longer-working-httpscloudflarevwo/#post-5856005)
 * Status: not resolved