1. Understand the Goal: The user wants a "low bandwidth UX audit" specifically targeting "2G conditions." The audit needs to cover "progressive JPEGs," "offline flows," and "caching policies." This is a technical/UX document.
-
Identify the Persona and Audience:
- Persona: A performance-conscious UX engineer, front-end architect, or product manager.
- Audience: Stakeholders who need to understand why the site fails on slow connections and how to fix it.
-
Structure of the Audit: A standard audit structure works best:
- Executive Summary: High-level findings and impact.
- Methodology: How the audit was conducted (throttling, tools).
- Key Findings & Recommendations (The Core):
- Visuals/Assets (Progressive JPEGs/WebP): Address the specific prompt requirement.
- Data Handling & Caching: Address the specific prompt requirement.
- Offline/Serviceworkers: Address the specific prompt requirement.
- General UX for Low Bandwidth (Skeletons, Fonts, Interaction).
- Prioritization/Roadmap: What to do first.
-
Drafting Content - Section by Section:
-
Title: Needs to be professional. "Resilience Audit: 2G Network Optimization."
-
Executive Summary: Emphasize the "Next Billion Users" or emerging markets. 2G isn't just speed; it's high latency and instability. The core metric is Time to Interactive (TTI).
-
Section 1: Asset Delivery (The "Progressive JPEG" requirement):
- Problem: Baseline JPEGs load top-to-bottom. On 2G, the user sees nothing for seconds, then the whole image. It feels broken.
- Solution: Progressive JPEGs. They render a low-res version immediately, sharpening over time. This provides perceived speed.
- Add-on: Mention modern formats (WebP/AVIF) as they are smaller, but stick to the prompt's specific focus on Progressive JPEGs as the fallback.
- UX impact: Reduces "jank" and perceived loading time.
-
Section 2: Network Resilience (The "Offline flows" requirement):
- Problem: On 2G, a request often times out or drops. The standard browser "Dino" page is a UX failure.
- Solution: Service Workers.
- Specific flows: Don't just cache everything. Cache the "shell" (App Shell model). If a user submits a form and the network drops, queue it in the background (Background Sync) and show a toast notification "Saved locally, will sync when online."
- UX impact: Reliability over speed. The app should feel native, not web-based.
-
Section 3: Caching Policies (The "Caching" requirement):
- Problem: Re-fetching the same logo/CSS on every page load kills 2G experience.
- Solution: HTTP Caching headers (
Cache-Control).
- Strategy: "Stale-While-Revalidate" is the golden rule here. Show the old version immediately, update in the background for next time.
- UX impact: Instant loads on repeat visits.
-
Section 4: Interaction & Layout (General Low-Bandwidth UX):
- Skeleton Screens: Don't use spinners (they induce anxiety). Use skeletons/pulse effects.
- Fonts:
font-display: swap. Show system text immediately, swap custom font later. Prevents FOIT (Flash of Invisible Text).
- Touch Targets: 2G devices are often small/cheap smartphones with lower sensitivity. Larger buttons.
-
Refining the Tone:
- The tone should be authoritative, actionable, and empathetic to the user's constraints. It shouldn't just say "fix this," but "do this because..."
- Use technical terminology correctly (RTT, Time to First Byte, Service Workers, Cache-Control).
-
Self-Correction/Review during drafting:
- Critique: Is 2G actually 2G? Or is it "Slow 3G"?
- Correction: I should define the simulation profile (e.g., 300ms RTT, 250kbps throughput) so the audit feels grounded in reality.
- Critique: Progressive JPEGs are a bit old school. Should I push WebP?
- Correction: Yes, but the prompt specifically asked for Progressive JPEGs. I will frame Progressive JPEGs as the baseline implementation or the fallback, while noting WebP is better, but focusing on the rendering behavior (progressive scan) as requested.
-
Final Polish: Organize with clear headings, bullet points, and a "Severity" scale to make it look like a real audit report. Add a "Code/Config Snippet" section to make it highly practical.
-
Output Generation: (This matches the provided good response).
Audit Subject: [Insert App Name/Website]
Network Profile: Good 2G (450ms RTT, 0.5 Mbps down) — Simulating emerging markets and rural connectivity.
Objective: To evaluate perceived performance (UX) and technical resilience under severe bandwidth constraints.
Executive Summary
The application currently assumes a stable, high-speed connection (4G/Wi-Fi). Under 2G simulation, the Time to Interactive (TTI) exceeds 12 seconds, and total blocking time is high due to rendering-blocking assets.
To retain users on unstable networks, we must shift the architecture from "Download-then-Render" to "Progressive Enhancement." This audit focuses on three pillars: Visual Stability (Progressive JPEGs), Resilience (Offline Flows), and Efficiency (Caching).
1. Asset Strategy: Progressive Rendering
Current State: Baseline JPEGs/PNGs.
On 2G, baseline images load top-to-bottom. Users see jagged scan lines for several seconds, creating a perception of a "broken" site.
Recommendation: Implement Progressive JPEGs
Progressive JPEGs (and interlaced PNGs) load the full image dimensions immediately at low resolution (blur), gradually sharpening as data arrives.
- UX Benefit: Users perceive the layout instantly. The "blur-to-clear" effect feels faster than the "scan-line" effect, reducing Cognitive Friction by allowing the brain to process the layout before details are sharp.
- Technical Action:
- Run all current assets through an image optimizer (e.g., ImageMagick, TinyPNG) to convert to Progressive JPEGs.
- Trade-off: Note that progressive encoding increases file size by approx. 2-3% in some cases, but the perception of speed gain outweighs the byte cost on 2G.
- LQIP (Low Quality Image Placeholders): For above-the-fold content, embed a tiny (10px wide) base64 blurred image in the HTML payload. This reserves the layout space instantly, preventing Cumulative Layout Shift (CLS).
2. Resilience: The "Lie-Fi" & Offline Flows
Current State: Network failure results in a browser default error page (DNS_PROBE_FINISHED_NO_INTERNET), causing user drop-off.
Recommendation: Service Worker Orchestrated UI
We must distinguish between "Offline" and "Lie-Fi" (a connection that exists but provides no data).
3. Caching Policies: The Cache-First Strategy
Current State: Network-First (or no-cache).
Every reload forces a round-trip to the server. On 2G (high latency), this adds 400ms–1s of dead wait time per resource.
Recommendation: Tiered Caching Strategy
4. 2G UX: Interaction & Feedback
Current State: Spinners (Loaders).
Critique: Spinners count time. Progress bars count work.
On 2G, a spinner that lasts >5 seconds causes anxiety (Nelson’s Law: "The user's wait is shorter than the computer's estimate").
- Skeleton Screens: Replace generic spinners with gray content blocks (Skeleton UI). This mimics the structure of the content before it loads.
- Lazy Loading Threshold: Trigger lazy loading for images at
2000px from the viewport bottom, not 0px. This anticipates the slow scroll speed and download lag, ensuring the image is ready when the user arrives.
Audit Scorecard (Remediation Plan)
| Check | Issue | Priority | Fix |
|---|
| Images | Baseline load causing scan lines | High | Convert to Progressive JPEG / WebP with fallback. |
| Offline | "Dino" error page on disconnect | Critical | Implement Service Worker fallback shell. |
| Forms | Form submit hangs on poor signal | High | Implement "Optimistic UI" + Background Sync. |
| Fonts | Invisible text (FOIT) blocks reading | Medium | Use font-display: swap to show system font immediately. |
| Video | Autoplay hero video buffers | Critical | Disable autoplay on detected 2G; serve static poster image. |
Next Step: I will simulate a "Stale-While-Revalidate" fetch event in a Service Worker to demonstrate how to cache the user dashboard for instant 2G load.