SShortSingh.
Back to feed

What Happens Between Typing a URL and a Web Page Loading

0
·4 views

A DEV Community tutorial walks readers through the journey a web request takes from the browser's address bar to a rendered page. It encourages readers to identify the host and path in a familiar URL before observing how the browser locates the server and receives a response. The piece uses a 404 error as a diagnostic example, explaining that such a page has already reached the server and received an HTTP response. It also notes that if a browser cannot resolve a host, the process stops earlier, before any server communication. The tutorial was produced with AI assistance and includes an accompanying video on YouTube.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Fixing sideways and squashed phone video uploads by reading FFmpeg's display matrix

Portrait phone videos often store landscape-oriented frames alongside a display matrix that instructs players to rotate them on playback. Pipelines that ignore this matrix can produce sideways video, portrait content squashed into landscape frames, or lost rotation after stream copies into MPEG-TS. The author reproduces these failures using FFmpeg 6.1.1, hls.js 1.7.4, and Chromium 158, showing that ffprobe reports the rotation in side data rather than in tags. Tests show that FFmpeg autorotates before applying filters, which causes the squashing, while fMP4 preserves the matrix where MPEG-TS does not. The proposed fix is a shared Python helper that applies the rotation before any layout, thumbnail, or ladder decisions.

0
ProgrammingDEV Community ·

Document Picture-in-Picture lets custom video players keep their controls

Standard video.requestPictureInPicture() only pops out the raw video, which drops any custom controls. The Document Picture-in-Picture API instead opens an always-on-top window that can hold your own DOM. The approach moves the live player node into that window without cloning it, so playback continues uninterrupted. Styles must be copied over and keyboard shortcuts rebound, since listeners on the original document stop firing while the PiP window has focus. The author tested it in Chromium 158 with hls.js, and browsers without the API, such as Safari, need to fall back to classic PiP.

0
ProgrammingDEV Community ·

How to implement TOTP in Node.js without packages, verified against RFC 6238

A DEV Community guide explains that a rejected authenticator code can be traced to one of four steps: decoding the secret, converting time into a counter, computing the HMAC, or truncating to six digits. It supplies a dependency-free Node.js implementation for each step. The RFC 6238 test vector is used to verify results, with the 8-digit code 94287082 and 6-digit code 287082 at 59 seconds. The walkthrough includes a Base32 decoder, big-endian counter encoding, and dynamic truncation with zero-padding. Command-line and HMAC-tool checks are suggested for isolating each stage.

0
ProgrammingDEV Community ·

How to Tell What Technology a Website Is Built With

Identifying a website's tech stack relies on publicly visible clues rather than special access. Users can view page source to look for generator tags and platform-specific paths such as /wp-content/ for WordPress or /cdn/shop/ for Shopify. Response headers and cookies viewed in browser developer tools can also reveal the server and platform. Automated technology detectors gather these same signals at scale, though they may miss tools loaded later by JavaScript. Results from any method should be treated as leads to confirm rather than guaranteed facts.