WordPress.org

Forums

Disqus Comment System
embed.js included twice in IE 11 ONLY (1 post)

  1. Evan Herman
    Member
    Posted 11 months ago #

    IE 11 loads embed.js twice, causing disqus to not work ever.

    I've pinpointed the issue to be inside of comments.php, the very last line...

    <script type="text/javascript">
    /* <![CDATA[ */
    (function() {
        var dsq = document.createElement('script'); dsq.type = 'text/javascript';
        dsq.async = true;
        dsq.src = '//' + disqus_shortname + '.' + '<?php echo DISQUS_DOMAIN; ?>' + '/embed.js?pname=wordpress&pver=<?php echo DISQUS_VERSION; ?>';
        (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
    })();
    /* ]]> */
    </script>

    For whatver reason that block of text is being initialized twice, and therefore loading embed.js twice. We've done nothing out of the ordinary. We're using default WordPress comments and installed disqus and bam, errors up the wazoo in IE. I've contacted support but received no helpful replies, only standard scripted responses that clearly were meant for the non-developer.

    Chrome and Firefox work fine.

    IE 11 loads embed.js twice, why is this?

    https://wordpress.org/plugins/disqus-comment-system/

Reply

You must log in to post.

About this Plugin

  • Disqus Comment System
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.