ritz078 / embed-js

🌻 A lightweight plugin to embed emojis, media, maps, tweets, code and more. ✨
https://codesandbox.io/s/Wp5OlNMn
MIT License
1.27k stars 88 forks source link

Twitter embed requires widgets.js #239

Closed dsozzi closed 7 years ago

dsozzi commented 7 years ago

You should state in the doc that to implement a Tweet embed first you should have the widgets.js coming from the Twitter platform otherwise it won't work. Wouldn't it be possible to include it in the source file?

ritz078 commented 7 years ago

It is documented https://embedjs.readme.io/docs/options#section-tweetsembed Can't include in the main bundle as that will increase filesize for people who don't want to use that feature.