Widjet.js alert "No suitable XHR implementation available"

widgetsjs

#1

Hi,

I’m loading a list of several single tweet with widget.js. It works like all tweets are well rendered, but at the first tweet created the browser display a alert box “No suitable XHR implementation available.”, then several follow as “XHR request failed.”, “XHR request aborted.” and finally “XHR request timed out.”.
This occurs only one time, not for each loaded tweet.
I’d try with Firefox, Chromium and Chrome on a Ubuntu computer.

Here is the code :

  1. add the twitter script:
    <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

  2. then for each tweet ID I want to display, I call widgets.createTweet() :

twttr.widgets.createTweet(
  '123123123123213',
  document.getElementById('the_unique_tweet_dom_element_id'),
  { align: 'left' }
);

I do not find for hours how to remove those alert boxes.


#2

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.