Title: Doesn&#8217;t work with Cloudflare
Last modified: February 14, 2017

---

# Doesn’t work with Cloudflare

 *  [scuderiadank](https://wordpress.org/support/users/scuderiadank/)
 * (@scuderiadank)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/)
 * This plugin doesn’t seem to work correctly when using Cloudflare for caching?
   With Cloudflare enabled it displays the animated loading gif and nothing else.
   Disabling it makes it work as intended.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/page/2/?output_format=md)

 *  Plugin Author [Joel James](https://wordpress.org/support/users/joelcj91/)
 * (@joelcj91)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-8807304)
 * Hi [@scuderiadank](https://wordpress.org/support/users/scuderiadank/),
 * Sorry to hear that. Is animated gif loaded upon page load?
 *  Thread Starter [scuderiadank](https://wordpress.org/support/users/scuderiadank/)
 * (@scuderiadank)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-8808198)
 * Yes, the animated loading gif displays but nothing else. Tried with the ‘on click’
   method too, but clicking the button doesn’t reveal the comments either.
 *  anonymized-11892634
 * (@anonymized-11892634)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-8870051)
 * Also not working on CloudFlare for me. Are there any plans to make the plugin
   compatible? It would be awesome 🙂
 *  Plugin Author [Joel James](https://wordpress.org/support/users/joelcj91/)
 * (@joelcj91)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-8882599)
 * Hi @philclothier,
 * Sure! I will make sure to fix these issues through next update.
 *  anonymized-11892634
 * (@anonymized-11892634)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-8883424)
 * [@joelcj91](https://wordpress.org/support/users/joelcj91/) Great! Let me know
   if you need any help testing
    -  This reply was modified 9 years, 2 months ago by anonymized-11892634.
 *  [leojonathanoh](https://wordpress.org/support/users/leojonathanoh/)
 * (@leojonathanoh)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-8930667)
 * same problem on cloudflare, a 403 seen on click of button.
 * but after down debugging i found out that it due to the well-known incompatibility
   between caching and nonces that the plugin uses on the front end of non-logged
   in users.
 * so i cleared stale cache (>24hrs) because a WordPress generated nonce validity
   is up to 24hrs. then each fresh page came a newly generated nonce which worked
   for anonymous users.
 * so the solution would be to either remove the nonce on the front end for non-
   logged in users, or to disable caching (CDN and/or caching plugins) for articles’
   HTML which would be hard.
 * Joel, i read that best practices recommend using nonces for Ajax loading (your
   plugin uses a POST to admin-ajax) but since we’re not doing any puts or deletes
   so can we have an option to remove the nonce entirely?
 * Thanks for the great plugin!
 *  Plugin Author [Joel James](https://wordpress.org/support/users/joelcj91/)
 * (@joelcj91)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-8960971)
 * Hi [@leojonathanoh](https://wordpress.org/support/users/leojonathanoh/),
 * Are you sure, it will work when you remove nonce check? If so, I will consider
   changing nonce check to something else.
 *  [leojonathanoh](https://wordpress.org/support/users/leojonathanoh/)
 * (@leojonathanoh)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-8965084)
 * [@joelcj91](https://wordpress.org/support/users/joelcj91/) pretty sure on this
   one. When I got a 403 on a cached page I opened up Developer Tools and changed
   the <input llc_ajax_nonce>’s value to a newly generated llc_ajax_nonce on another
   page that I cleared the cache on, and it went through.
 * At least for now I applied is_user_logged_in so the nonce is not checked for 
   non-logged in users
    **/lazy-load-for-comments/public/class-llc-public.php**
 *     ```
       if (is_user_logged_in())
       	check_ajax_referer( 'llc-ajax-nonce', 'llc_ajax_nonce' );
       ```
   
 * Perhaps we could add in a referrer check. Can’t suggest much since I don’t do
   WP development.
 *  Plugin Author [Joel James](https://wordpress.org/support/users/joelcj91/)
 * (@joelcj91)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-8986481)
 * Hey [@leojonathanoh](https://wordpress.org/support/users/leojonathanoh/), [@scuderiadank](https://wordpress.org/support/users/scuderiadank/)
   and @philclothier,
 * Please [review this](https://github.com/Joel-James/lazy-load-for-comments) upcoming
   version and give me your feedback. I have removed nonce check and changed the
   ajax request to GET method. I will push this to live once you confirm the fix.
    -  This reply was modified 9 years, 1 month ago by [Joel James](https://wordpress.org/support/users/joelcj91/).
 *  [caschy](https://wordpress.org/support/users/caschy/)
 * (@caschy)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-9001513)
 * [@joel](https://wordpress.org/support/users/joel/) James: Doesn’t work for me.(
   Cloudflare + Jetpack). Tests with the Github-Version.
 *  Plugin Author [Joel James](https://wordpress.org/support/users/joelcj91/)
 * (@joelcj91)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-9001535)
 * Have you cleared your cache, [@caschy](https://wordpress.org/support/users/caschy/)?(
   From CloudFlare). If yes, can you try disabling Jetpack?
 * PS: This plugin does not support Jetpack comments yet.
 *  [caschy](https://wordpress.org/support/users/caschy/)
 * (@caschy)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-9001548)
 * [@joelcj91](https://wordpress.org/support/users/joelcj91/): “This plugin does
   not support Jetpack comments yet.” I’m sorry, i did not see this. So it’s useless
   for my site atm, true?
    -  This reply was modified 9 years, 1 month ago by [caschy](https://wordpress.org/support/users/caschy/).
 *  Plugin Author [Joel James](https://wordpress.org/support/users/joelcj91/)
 * (@joelcj91)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-9001695)
 * Hi [@caschy](https://wordpress.org/support/users/caschy/),
 * Like this plugin description says, this plugin lazy loads default WordPress comments.
   If you are using normal WordPress comments, while Jetpack is enabled, it should
   work.
 *  [Chris David Miles](https://wordpress.org/support/users/chrisdavidmiles/)
 * (@chrisdavidmiles)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-9303486)
 * The [GitHub](https://github.com/Joel-James/lazy-load-for-comments) version of
   this plugin does work with Cloudflare.
 * I just wanted to follow up for anyone still following this thread. I was having
   a similar problem when using the Cloudflare’s full-page fully static caching.
   Comments wouldn’t load for non-logged in users since the plugin uses nonce keys(
   which were being cached on the edge by Cloudflare). As per [@joelcj91](https://wordpress.org/support/users/joelcj91/)’
   s suggestion, I [tested](https://lazy-load-for-comments-staging.code.qa/post)
   the GitHub version of the plugin, and it works great! I look forward to seeing
   it published to the .org repo. 🙂
 *  [makeonlineshops](https://wordpress.org/support/users/makeonlineshops/)
 * (@makeonlineshops)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/#post-9303497)
 * Hello, can I know if a page really load faster with this plugin ? It sound a 
   bit weird that someone needs a special plugin just to lazy load comments !
    Thank
   you.

Viewing 15 replies - 1 through 15 (of 16 total)

1 [2](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/page/2/?output_format=md)

The topic ‘Doesn’t work with Cloudflare’ is closed to new replies.

 * ![](https://ps.w.org/lazy-load-for-comments/assets/icon-128x128.png?rev=1535816)
 * [Lazy Load for Comments](https://wordpress.org/plugins/lazy-load-for-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lazy-load-for-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lazy-load-for-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/lazy-load-for-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lazy-load-for-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lazy-load-for-comments/reviews/)

 * 16 replies
 * 7 participants
 * Last reply from: anonymized-11892634
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/doesnt-work-with-cloudflare/page/2/#post-9315823)
 * Status: not resolved