# Events

Events are dispatched from the root element of the component and are prefixed with the name of the component. Note that — to be an idiomatic WebComponent — all communication form the component back to the outside world occurs via events.

## hy-img-init

This event is fired whenever the component gets attached to the DOM.

jQuery event name
init.hy.img

## hy-img-load

jQuery event name
load.hy.img