The UI layer represents all the events (and associated stuff) happening between the browser and the server. There are many events, including, but not limited to, the following:
Firing the HTTP request
Getting the response
Downloading the resources
Rendering them in the browser
Any JavaScript code execution