Disqus module not working with BigPipe

Created on 21 March 2016, over 8 years ago
Updated 20 May 2024, about 1 month ago

Problem

When BigPipe (8.1.x rc1) is enabled, and the user is logged in. Disqus comments will not load.

However even when Disqus does not load, the following HTML exists.

<div data-quickedit-field-id="node/24/field_disqus/und/full">
<div id="disqus_thread">
<noscript>
  <p>
    <a href="http://localhost:8080/node/24">View the discussion thread.</a>
  </p>
</noscript>
</div>
</div>

Note that the Disqus field is not delivered using the BigPipe mechanism even if BigPipe is active.

Now when BigPipe is enabled, the ajax call in disqus.js that loads embed.js from disqus.com is not executed. (Line 69 in disqus.js)

        // Make the AJAX call to get the Disqus comments.
        jQuery.ajax({
          type: 'GET',
          url: '//' + disqus_shortname + '.disqus.com/embed.js',
          dataType: 'script',
          cache: false
        });

If I manually run this code in the console after the page is loaded, it will then load embed.js from disqus.com and the comment will load normally.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.69.0 2024