VideobanaBeta

What Happens When You Open a Website?

From typing an address to seeing a page: the journey of a web request in five steps.

Preview

Plays with its recorded voice-over.

7 scenes · narrated · captions included

The JSON behind it

This is all it takes.

{
  "version": 1,
  "title": "What Happens When You Open a Website?",
  "subtitle": "From typing an address to seeing a page: the journey of a web request in five steps.",
  "topic": "How the web works: DNS, HTTP, HTTPS",
  "domain": "technology",
  "emoji": "🌐",
  "kicker": "How things work",
  "chips": [
    "Beginner",
    "Web basics"
  ],
  "style": {
    "theme": "blueprint-lab",
    "captions": "terminal",
    "progress": "bar",
    "header": [
      "title"
    ]
  },
  "narration": {
    "voice": "M3",
    "speed": 0.95
  },
  "scenes": [
    {
      "kind": "intro",
      "say": [
        "You type an address and a page appears in a blink.",
        "But behind that blink, a lot happens. Let us trace it."
      ]
    },
    {
      "kind": "steps",
      "heading": "The journey of a request",
      "items": [
        {
          "title": "You type the address",
          "text": "The browser reads the name.",
          "time": "0 ms",
          "tone": "sky",
          "say": "First, you type an address and the browser reads the website name."
        },
        {
          "title": "DNS lookup",
          "text": "Name to number.",
          "time": "20 ms",
          "tone": "violet",
          "say": "Then a DNS lookup turns that name into a number, called an IP address."
        },
        {
          "title": "Secure connection",
          "text": "A private channel opens.",
          "time": "50 ms",
          "tone": "emerald",
          "say": "The browser opens a secure, private connection to that address."
        },
        {
          "title": "Request and response",
          "text": "The server sends the page.",
          "time": "100 ms",
          "tone": "amber",
          "say": "It asks for the page, and the server sends it back."
        },
        {
          "title": "Rendering",
          "text": "The page appears.",
          "time": "300 ms",
          "tone": "rose",
          "say": "Finally, the browser draws the page on your screen."
        }
      ]
    },
    {
      "kind": "flashcards",
      "heading": "Web vocabulary",
      "cards": [
        {
          "question": "What is DNS?",
          "answer": "The phonebook of the internet",
          "icon": "📒",
          "tone": "violet",
          "say": "What is DNS?",
          "sayAnswer": "It is the phonebook of the internet, matching names to addresses."
        },
        {
          "question": "What is HTTP?",
          "answer": "The language browsers and servers use",
          "icon": "💬",
          "tone": "sky",
          "say": "What is HTTP?",
          "sayAnswer": "It is the language that browsers and servers use to talk."
        },
        {
          "question": "What is a server?",
          "answer": "A computer that serves pages",
          "icon": "🖥️",
          "tone": "emerald",
          "say": "And what is a server?",
          "sayAnswer": "It is a computer that stores websites and serves them on request."
        }
      ]
    },
    {
      "kind": "code",
      "heading": "A request in code",
      "filename": "fetch.ts",
      "lines": [
        {
          "code": "const response = await fetch(\"/api/videos\");",
          "say": "In code, a single line asks a server for data."
        },
        {
          "code": "const videos = await response.json();",
          "say": "The reply is then turned into data your program can use."
        },
        {
          "code": "console.log(videos.length);",
          "say": "And here we simply print how many videos came back."
        }
      ],
      "transition": "glitch"
    },
    {
      "kind": "compare",
      "heading": "HTTP or HTTPS?",
      "columns": [
        "HTTP",
        "HTTPS"
      ],
      "highlight": 1,
      "rows": [
        {
          "feature": "Encrypted",
          "values": [
            "no",
            "yes"
          ],
          "say": "HTTPS encrypts everything, HTTP does not."
        },
        {
          "feature": "Padlock in the browser",
          "values": [
            "no",
            "yes"
          ],
          "say": "Only HTTPS shows the padlock."
        },
        {
          "feature": "Safe for passwords",
          "values": [
            "no",
            "yes"
          ],
          "say": "So only HTTPS is safe for passwords and payments."
        }
      ]
    },
    {
      "kind": "faq",
      "heading": "Quick questions",
      "items": [
        {
          "question": "Why do some sites load slowly?",
          "answer": "Large images, far-away servers or busy networks.",
          "tone": "amber",
          "say": "Why do some sites load slowly? Usually large images, far-away servers or busy networks."
        },
        {
          "question": "Is the cloud a real place?",
          "answer": "Yes, it is other people's computers in data centres.",
          "tone": "sky",
          "say": "Is the cloud a real place? Yes, it is simply other people's computers in data centres."
        }
      ]
    },
    {
      "kind": "statement",
      "eyebrow": "Next time you click",
      "text": "Every page is a **conversation** between two computers.",
      "icon": "🌐",
      "say": "So next time you click a link, remember: every page is a conversation between two computers.",
      "header": false
    }
  ]
}