# Cut the payload on one route

One route's weight reduced through image sizing, lazy loading, and code splitting, measured before and after.

Category: Performance and cost
Source: https://letsship.ai/use-cases/cut-the-payload-on-one-route
Published: 2026-08-25

## Goal

Reduce the transferred payload of one route without changing what it renders.

## Acceptance criteria

- Transferred bytes are measured before and after
- Images are sized and served in a modern format
- Code not needed for first render is split out
- A visual comparison shows the rendered result is unchanged

## What lands as proof

Byte measurements before and after, plus a visual comparison proving nothing was dropped to achieve them.

## Prompt

Copy this to an agent to open the ticket:

```text
Create a Linear issue in my team and assign it to the SHIP agent.

Title: Cut the payload on {route}

Description: Reduce the transferred payload of one route without changing what it renders.

Acceptance criteria:
- Transferred bytes are measured before and after
- Images are sized and served in a modern format
- Code not needed for first render is split out
- A visual comparison shows the rendered result is unchanged

Before you create the issue, measure this repository's routes and replace {route} with the heaviest one real users hit.
```

## Questions

### What does the agent actually change?

The ticket is scoped to one outcome: reduce the transferred payload of one route without changing what it renders. Work that serves that outcome is in scope, and anything outside it is left for a separate ticket, so the pull request stays reviewable.

### How do I know the work is done?

The pull request carries the evidence, not only the diff. Here that means measured before and after in the pull request, so a reviewer can confirm the result without reproducing the work locally.

### How much oversight does this need?

The run stops once the plan is written. Somebody reads the approach and approves it before any code exists, which is the cheapest moment to redirect the work.
