Guys please tell me how can I trigger this event on page load: welcomeWinget_loadAvatarChangeCmp
The script
tag is available in DOM. So your choice in
the order of occurrence:
1. Earliest:
Function refers to or consider in script tag just before closing the body tag.
The DOM is ready at this point ( As stated by to the Google Closure folks, and
they should know; I've also tested it on a bunch of browsers).
2. Earliest:
the java script is jQuery.ready callback.
3. Late,
after all page materials adding images are completely loaded: window on load
event.