APCSP

0.0(0)
studied byStudied by 1 person
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/14

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

15 Terms

1
New cards

Step 1

Normalize the URL (browser fills in https:// if needed, strips spaces) and check local caches (browser, OS hosts file, router) and history for a known IP — if found, skip DNS.

2
New cards

Step 2

DNS lookup (if needed): your browser asks a DNS resolver which queries the root → TLD → authoritative name server (CDNs may direct you to a nearby edge) and returns the website’s IP address.

3
New cards

Step 3

Choose protocol & port (e.g., HTTPS → port 443, HTTP → port 80) and prepare to open a connection.

4
New cards

Step 4

Open a TCP connection to the server IP (three-way handshake: SYN → SYN/ACK → ACK). (If the site uses HTTP/3, a QUIC/UDP connection is used instead.)

5
New cards

Step 5

TLS handshake (for HTTPS): browser and server exchange ClientHello/ServerHello, server sends its certificate, browser verifies the certificate with trusted CAs, they complete key exchange and derive symmetric encryption keys.

6
New cards

Step 6

Send the HTTP request (e.g., GET / HTTP/1.1) with headers (Host, cookies, user-agent, etc.).

7
New cards

Step 7 

Server processes the request (may run backend code, check auth, query a database) and sends back an HTTP response (status code, headers, body). If it’s a redirect (3xx) the browser follows the new URL and repeats relevant steps

8
New cards

Step 8

Browser starts parsing the response as it arrives — HTML is parsed into the DOM (document object model).

9
New cards

Step 9

Fetch and parse resources referenced by the HTML (CSS → CSSOM, JavaScript files, images, fonts). CSS and certain scripts can block rendering until loaded/executed.

10
New cards

Step 10

Build render tree and layout: combine DOM + CSSOM into a render tree, compute layout (positions/sizes).

11
New cards

Step 11

Paint & composite: browser paints pixels to the screen and composites layers (result: the page becomes visible).

12
New cards

Step 12

Execute JavaScript (which can modify the DOM/CSSOM and trigger reflows/repaints) and handle any dynamic requests (AJAX/fetch) that load more data.

13
New cards

Step 13

Perform additional performance/security steps: use HTTP/2 or HTTP/3 multiplexing if available, check HSTS or block mixed content, apply CSP rules, consult caches for subsequent requests.

14
New cards

Step 14

Keep connection or close: browser may keep the TCP/TLS connection open (keep-alive) for further requests; responses and resources may be cached for later reuse.

15
New cards

Step 15

Page is interactive: event loop listens for user input, scripts run, and the browser continues fetching resources or updates as needed.