Fix browser stall due to twitter follow button (add async)

web
javascript
followbutton

#1

The suggested code for use when adding a twitter follow widget to your website here :
https://dev.twitter.com/web/javascript/loading
can cause your site to stall when assets (e.g. the ‘jot’ asset) loaded by the embedded script stall during download. To prevent the entire page stalling edit the code so the dynamic javascript element is asynchronous, e.g. :

      ... 
      js = d.createElement(s);
      js.async = 1;
      js.id = id;
      js.src = "https://platform.twitter.com/widgets.js";
      ...

Note it is dynamically inserted javascript tag that must become async (with the second line above).


#2