I'm using embeds.js to display instagram posts on a website. referring to https://www.instagram.com/developer/embedding/
I use also the widgets.js for twitter and with it I can load a twit, set an handler to get when the iframe is ready and then call twttr.widgets.load() in this way:
twttr.events.bind('rendered', function (event) {
//do something when the iframe is ready
});
twttr.widgets.load();
Does anybody know if there is a similar feature or maybe a workaround to get when the instagram iframe is ready?
After loading the instagram post I use:
instgrm.Embeds.process();
to render the iFrame.
side note: the application is made with angular/jquery, so the workaround can be done with those libraries.
Thanks in advance, Daniele