{"action":"opened","issue":{"url":"https://api.github.com/repos/clappr/clappr/issues/724","labels_url":"https://api.github.com/repos/clappr/clappr/issues/724/labels{/name}","comments_url":"https://api.github.com/repos/clappr/clappr/issues/724/comments","events_url":"https://api.github.com/repos/clappr/clappr/issues/724/events","html_url":"https://github.com/clappr/clappr/issues/724","id":121354416,"number":724,"title":"How to determine when plugins and container(s) have loaded?","user":{"login":"tjenkinson","id":3259993,"avatar_url":"https://avatars.githubusercontent.com/u/3259993?v=3","gravatar_id":"","url":"https://api.github.com/users/tjenkinson","html_url":"https://github.com/tjenkinson","followers_url":"https://api.github.com/users/tjenkinson/followers","following_url":"https://api.github.com/users/tjenkinson/following{/other_user}","gists_url":"https://api.github.com/users/tjenkinson/gists{/gist_id}","starred_url":"https://api.github.com/users/tjenkinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjenkinson/subscriptions","organizations_url":"https://api.github.com/users/tjenkinson/orgs","repos_url":"https://api.github.com/users/tjenkinson/repos","events_url":"https://api.github.com/users/tjenkinson/events{/privacy}","received_events_url":"https://api.github.com/users/tjenkinson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clappr/clappr/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-09T22:22:29Z","updated_at":"2015-12-09T22:22:29Z","closed_at":null,"body":"Currently if you load the player with a plugin it might not be available with `getPlugin(\"plugin\")` immediately after the player has been created, because sometimes the core takes more than a single tick to load, and [plugins are only loaded after the core has loaded](https://github.com/clappr/clappr/blob/5d932fc6ef489ee897561ec29b0cdd46043dc17e/src/components/core_factory/core_factory.js#L37).\r\n\r\nHow can a user know when the plugins have been loaded and can be retrieved with `getPlugin()`?\r\n\r\nAlso maybe there should be an event for when all containers have finished loading, signifying the player itself has completely finished loading? Maybe this would fire around [here](https://github.com/clappr/clappr/blob/5d932fc6ef489ee897561ec29b0cdd46043dc17e/src/components/core/core.js#L125)? (I'm still trying to get my head around all the defers and asynchronous stuff!)"}}