Twitter seems to have dealt with already rendered tweets already so there isn't much to do there.

This patch uses the library api to load the js and just makes sure twttr.widgets.load(); runs which is required for ajax callbacks.

Using twttr.widgets.load() directly will make sure duplicate tweet embeds are not created on ajax load.

CommentFileSizeAuthor
twitter-ajax.patch1.34 KBJaesin

Comments

Jaesin created an issue. See original summary.

draganeror’s picture

Status: Active » Reviewed & tested by the community

Heh, nice solution! I didn't know Twitter has this nice feature, thanks @Jaesin!

  • slashrsm committed ef41284 on 8.x-1.x authored by Jaesin
    Issue #2675244 by Jaesin, Dragan Eror: Simplify Tweet display JS by...
slashrsm’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thank you both!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.