I had the same problem. In my case, the page was not loaded before the download request was made. Wait until the document is ready to work with:
$(function () { function loadWidgets(){ twttr.widgets.load(); } loadWidgets(); });
cameronroe
source share