Adds data-cfasync="false" so Rocket Loader leaves the script alone.
Cloudflare's Rocket Loader defers every script on the page, which can stop comments from loading or make them load late. With this on, the plugin's script tag and the settings data printed just before it are both marked:
Try this if a caching or minify plugin stops comments from loading.
The plugin's script is then printed directly in the page instead of loaded as a separate file. Some optimisation plugins combine, defer or rewrite script files in ways that break the loader. Printing it inline, in the footer, keeps it out of their reach. The script is small, so the cost is a few kilobytes per page.
It applies to pages that show the Disqus thread. Pages that only show comment counts, such as archives, still load the script as a file.
Sites that had the official Disqus plugin's inline JavaScript option on get this turned on automatically when they upgrade.
Check the shortname. A typo shows a Disqus error in the thread. See Shortname.
Check the post. Comments must be open, and the post type not excluded.
Switch to Immediately (no lazy load) under Comment loading on the General page. If comments now load, a script optimiser is interfering with lazy loading.
Exclude the script from optimisation. In your caching or minify plugin, exclude disqus-conditional-load/build/embed.js from combining, deferring and delaying — or turn on Print the script inline.
Using Cloudflare? Turn on Cloudflare Rocket Loader compatibility.
Clear every cache — plugin, host and CDN — after each change.
Still stuck? Ask on the support forum with a link to a post where it happens.
Advanced
The Advanced page holds three switches, under Compatibility. All are off by default — turn one on only when you have the problem it solves.
Load comments for search engine bots
Setting key:
dcl_gnrl_options.dcl_caching· Default:0Turning this on switches SEO mode off: bots get the Disqus embed like people do. See Page caching for when you need it and the alternative.
Cloudflare Rocket Loader compatibility
Setting key:
dcl_gnrl_options.dcl_cfasync· Default:0Cloudflare's Rocket Loader defers every script on the page, which can stop comments from loading or make them load late. With this on, the plugin's script tag and the settings data printed just before it are both marked:
and Rocket Loader skips them. Only turn it on if Rocket Loader is enabled for your site and comments misbehave.
Works with inline mode
Together with Print the script inline, the inline script and its data are marked the same way, so you can use both.
Print the script inline
Setting key:
dcl_gnrl_options.dcl_render_inline· Default:0The plugin's script is then printed directly in the page instead of loaded as a separate file. Some optimisation plugins combine, defer or rewrite script files in ways that break the loader. Printing it inline, in the footer, keeps it out of their reach. The script is small, so the cost is a few kilobytes per page.
It applies to pages that show the Disqus thread. Pages that only show comment counts, such as archives, still load the script as a file.
Sites that had the official Disqus plugin's inline JavaScript option on get this turned on automatically when they upgrade.
Troubleshooting comments that don't load
Work through these in order:
disqus-conditional-load/build/embed.jsfrom combining, deferring and delaying — or turn on Print the script inline.Still stuck? Ask on the support forum with a link to a post where it happens.
Related