Reputation: 27845
i have an https
page where i embed disqus
for commenting on the posted data. Issue is when the page gets loaded in chrome
, it blocks the disqus code
to execute, as it is served from a http
host.
specifically:
script(type="text/javascript")
var disqus_shortname = 'postocks';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
so disqus doesn't get loaded in chrome. Works fine in firefox,safari.
I tired to fix it by:
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
and it dint work.Is there any fix by which i can geet it working on the https page? Also if i get the embed.js on my https host and serve it, will that make a difference. Please suggest.
Upvotes: 0
Views: 1262