AITeky Learn

AiTeky Original Interactive Learning & Practice Intermediate

Web development: caching, escaping and the slow page

Understand how the browser decides what to keep and what to ask for again, why text from a user must be escaped before it is shown, and how page weight decides how long a phone waits.

Every web page is a conversation between a browser and a server. Three ideas decide whether it is fast and safe: caching (what the browser may reuse), escaping (turning user text into plain text so it cannot act as code) and page weight (how many bytes a slow phone must download before it can show anything).

This course models those ideas with small Python programs you can run in your browser. Python stands in for the browser and server: the code is not HTML, CSS or JavaScript, but the rules and numbers show how they behave. Check MDN Web Docs for exact syntax. All numbers are made up.

  • Learn lessons explain one idea at a time and let you run it.
  • Industry ready lessons decide and justify, and end with interview questions.

No web experience is assumed. Basic Python helps.

Locked. Sign up free

Learn

Understand each idea with everyday examples. No coding background needed.

  1. 00 25 min 🔒 AiTeky Pass Start here: what happens when you open a page Follow the steps from typing a web address to seeing a page, learn that a page is text with structure, and see why anything a visitor typed must be made safe before it is shown.
  2. 01 30 min Free sample 🔒 AiTeky Pass What the browser may keep Model a browser cache with a time limit set by the server, count how many times the server is asked for a file with and without a caching rule, and see why a changed file needs a new name.
  3. 02 30 min 🔒 AiTeky Pass Text that becomes code Model a page that inserts a visitor's text into HTML without escaping it, see how a comment can carry a script that would run in other visitors' browsers, and see how escaping turns the same text into harmless characters.

Industry ready

Real problems from real jobs, and the questions interviewers ask about them.

  1. 03 35 min 🔒 AiTeky Pass On the job: the page that took nine seconds on a phone The product page loads fast on the developers' laptops and takes nine seconds on customers' phones. Model page weight and connection speed, compare four fixes (a bigger server, a faster-looking spinner, smaller images and modern formats, more caching), choose, and write the incident note.

We use essential cookies to run the site. With your permission we also set one anonymous ID to count unique visitors, and analytics cookies to see which pages help learners. Cookie notice

Join AiTeky Learn. It's free.

Create a free account to track your progress, save items for later and get study suggestions.

Sign up free Log in