Created
August 13, 2015 21:39
-
-
Save afuggetta/59c7c6d41f70c1c2756d to your computer and use it in GitHub Desktop.
Check twitter embed iframe is loaded
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Load/Enqueue the twitter widgets.js | |
window.twttr.ready(function (twttr) { | |
// At this point the widget.js file had been loaded. | |
// We can now make use of the twttr events | |
twttr.events.bind('rendered', function (event) { | |
// At this point the tweet as been fully loaded | |
// and rendered and you we can proceed with our Javascript | |
window.console.log("Created widget", event.target.id); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment