sequenceDiagram
BROWSER->>SERVER: HTTP GET https://studies.cs.helsinki.fi/exampleapp/spa
SERVER-->>BROWSER: HTML-code
BROWSER->>SERVER: HTTP GET https://studies.cs.helsinki.fi/exampleapp/main.css
SERVER-->>BROWSER: main.css
BROWSER->>SERVER: HTTP GET https://studies.cs.helsinki.fi/exampleapp/spa.js
SERVER-->>BROWSER: spa.js
Note over BROWSER: browser starts executing js-code <br> that requests JSON data from server
BROWSER->>SERVER: HTTP GET https://studies.cs.helsinki.fi/exampleapp/data.json
SERVER-->>BROWSER: [{"content":"test","date":"2023-01-11T17:32:32.196Z"}, ...]
note over BROWSER: browser executes the event handler <br> that renders notes to display
1
Loadinggraph TD; Browser; to Server;GET https://studies.cs.helsinki.fi/exampleapp/spa activate server
Loadinggraph TD; Server; to Browser;HTML Code deactivate server
2
Loadinggraph TD; Browser; to Server;GET https://studies.cs.helsinki.fi/exampleapp/main.css activate server
Loadinggraph TD; Server; to Browser;Main.css deactivate server
3
Loadinggraph TD; Browser; to Server;GET https://studies.cs.helsinki.fi/exampleapp/spa.js activate server
Loadinggraph TD; Server; to Browser;Spa.js deactivate server
Note over BROWSER: browser starts executing js-code
that requests JSON data from server
4
Loadinggraph TD; Browser; to Server;GET https://studies.cs.helsinki.fi/exampleapp/data.json activate server
Loadinggraph TD; Server; to Browser;[{"content":"test","date":"2023-01-11T17:32:32.196Z"}, ...] deactivate server
note over BROWSER: browser executes the event handler
that renders notes to display