Document how to find the end of the loading event.

I found it difficult to discover how to actually be notified of when the end of a transition occurred after receiving the `loading` event. I believe this is the correct way, and if so, I think it'd be helpful for others to see this example.