Follow button does not work most of the sometimes

I am using below code for twitter follow button:

data-show-count="true">Follow@directdialogs

window.twttr = (function (d,s,id) { var t, js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js=d.createElement(s); js.id=id; js.src="//platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); return window.twttr || (t = { _e: [], ready: function(f){ t._e.push(f) } }); }(document, "script", "twitter-wjs")); twttr.ready(function (twttr) { twttr.events.bind('follow', function(e) { alert("FOLLOW!") }); });

But alert("FOLLOW!") is not firing most of the sometimes.

Comments

DamienMcKenna’s picture

Priority: Critical » Normal
Issue tags: -twitter, -Follow

Do you see any JS errors on the page?

almaudoh’s picture

DamienMcKenna’s picture

Status: Active » Closed (works as designed)
Parent issue: #2583115: Identify replacements for Twitter on Drupal 8 »

I'm sorry, but this isn't relevant to the Twitter module, especially given that the module was scrapped and is being written from scratch.