in ArticleTemplates/assets/js/modules/twitter.js [102:120]
function enhanceTweets() {
let i;
let tweetHeightChange = false;
for (i = 0; i < tweets.length; i++) {
enhanceTweet(tweets[i])
if (tweetHeights[i] !== tweets[i].clientHeight) {
tweetHeightChange = true;
tweetHeights[i] = tweets[i].clientHeight;
}
}
if (tweetHeightChange && articleBody){
twttr.widgets.load(articleBody);
// When a tweets been enhanced check position of related cards placeholder
initPositionPoller();
initMpuPoller(0);
resetAndCheckForVideos();
}
}