Dynamic data-text on tweet button



I generate content for my tweet button dynamically, but even when I have my script to run first widget.js still runs before, I tried using twttr.widget.load() to update the value but it didn’t work.

Is it possible to update the value of the twitter button after it has already loaded initially? Or make it so it initializes after the content has loaded?


The Tweet button JavaScript factory function allows dynamic creation of a Tweet button inside a specified container element.


This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.