WordPress.org

Support

Support » Plugins and Hacks » embed.js included twice in IE 11 ONLY

embed.js included twice in IE 11 ONLY

  • Evan Herman
    Participant

    @eherman24

    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/

  • The topic ‘embed.js included twice in IE 11 ONLY’ is closed to new replies.