iwannabebot / ng-gist

AOT/JIT compatible Angular component to embed Gist
MIT License
4 stars 3 forks source link

Event to notifty that the gist has been loaded #1

Closed dianjuar closed 3 years ago

dianjuar commented 6 years ago

Hello.

I have several gists in a page using your module and they take a while to load. When loading just show nothing...

I can use an image-gif when are loading but I need that your component have that event.

dianjuar commented 6 years ago

The iframe has the onload method that will be called when the iframe loads.

You can use it to indicate that everything was loaded

iwannabebot commented 6 years ago

This looks good for firefox. cannot verify in Chrome/Edge/Opera/IE 11.

@dianjuar You can forward a PR if you find anything better than the above solution.