Throttle the network to test slow connections
Test a page on a slow connection with Chrome DevTools network throttling, or script the same limit in Puppeteer with a predefined condition.
A page that is quick on office Wi-Fi may be unusable on a phone. In the Network panel, open the throttling dropdown, which says No throttling, and choose Slow 4G, Fast 4G or Offline. Reload, and the waterfall shows how long each request takes. See the Network throttling docs.
To make a repeatable check, script it with Puppeteer:
import puppeteer, { PredefinedNetworkConditions } from "puppeteer";
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.emulateNetworkConditions(PredefinedNetworkConditions["Slow 3G"]);
await page.goto("https://example.test/");
console.log("Loaded under Slow 3G:", await page.title());
await browser.close();Loaded under Slow 3G: Example DomainPredefinedNetworkConditions ships with Puppeteer and holds the download speed, upload speed and latency of each profile, as listed in the Puppeteer API reference.
Throttling slows the network only. The CPU is separate: use the Performance panel's CPU throttling to mimic a slower device as well, and test with the cache disabled for a cold visit.