Trigger a single event on js app initilized

Usefull to bind to extension loading, to load only once
Merge pull request #3567 from Carreau/app-init-event

Trigger a single event on js app initilized.