tmort / Socialite

Other
1.68k stars 163 forks source link

Possible performance improvement for Twitter #53

Open DeanMarkTaylor opened 11 years ago

DeanMarkTaylor commented 11 years ago

The Twitter Web Intents JavaScript API specifically mentions the following call for Re-evaluating content: twttr.widgets.load();

This is currently being used.

However more recently a parameter can now be passed to twttr.widgets.load();.

The specific comment by Twitter employee André Pinter (14 weeks and 1 day ago) on the discussion Cannot update tweet button with Ajax:

twttr.widgets.load now takes an optional root HTMLElement argument. You can start using this now!

Hopefully there is some performance gain from this.

Cheers, Dean.

tmort commented 10 years ago

Dean,

Appreciate you pointing that out! I'll see if I can get this into the next release. If you'd like to contribute don't hesitate to submit a pull request.