---
title: "Keep flows light"
description: "Make a flow open faster: see which assets the app loads before the first screen, and cut what weighs the most."
---

> For the complete documentation index, see [llms.txt](https://adapty.io/docs/llms.txt).

> **AI agents**: to search Adapty docs faster and with fewer tokens, install the Adapty skills: `npx adapty skills install --yes`

To make a flow open sooner, cut what makes its assets heavy. Before your app shows a flow for the first time, it loads the assets of the flow from Adapty. The heavier the assets, the longer users wait for the first screen, most of all on a slow connection.

## Assets that load before the first screen

The app loads the assets of the whole flow, every screen included. They consist of three parts:

- **Image previews and icons**: A small copy of each image, and every icon. Users see the preview until the full-size image loads.
- **Text content in every locale**: All text content of the flow, translated into each locale.
- **Screens, elements, and actions**: The layout, styles, and actions of every screen, and links to the full-size images and videos.

Full-size images and videos load separately from these assets, by link. They don't delay the first screen: users see the previews until the files load. To show first-screen media without previews, <InlineTooltip tooltip="bundle the files with the app">[iOS](ios-optimize-paywall-fetching#show-first-screen-media-from-the-app-bundle), [Android](android-optimize-paywall-fetching#show-first-screen-media-from-the-app-bundle), [React Native](react-native-optimize-paywall-fetching#show-first-screen-media-from-the-app-bundle), [Flutter](flutter-optimize-paywall-fetching#show-first-screen-media-from-the-app-bundle), [Unity](unity-optimize-paywall-fetching#show-first-screen-media-from-the-app-bundle), [Kotlin Multiplatform](kmp-optimize-paywall-fetching#show-first-screen-media-from-the-app-bundle), [Capacitor](capacitor-optimize-paywall-fetching#show-first-screen-media-from-the-app-bundle)</InlineTooltip>.

Fonts weigh almost nothing: the assets only carry their names, and the font files come with the app.

The app loads the assets of a flow from Adapty the first time it shows the flow on a device. After you publish a new version, the app loads them again. In between, the app reads the assets from the device, and users don't wait.

## See the size of a flow

To see how big the published version of a flow is, open the Flow actions **Flow actions** menu and select **Show flow size**. The **Flow size** dialog shows how much the app downloads and what weighs the most:

| Number | What it shows | How to make it smaller |
|--------|---------------|------------------------|
| **iOS** and **Android** | How much the app downloads on each platform before the first screen. | Any section of [Make a flow lighter](#make-a-flow-lighter) |
| **Image previews** | The size of image previews and icons in the Android download. | [Reuse a background image through a color style](#reuse-a-background-image-through-a-color-style), [Remove what the flow doesn't need](#remove-what-the-flow-doesnt-need) |
| **Texts** | The size of the text content of every locale in the Android download. | [Delete locales you don't need](#delete-locales-you-dont-need) |
| **Screens and actions** | The size of the layout, styles, and actions of every screen in the Android download. | [Remove what the flow doesn't need](#remove-what-the-flow-doesnt-need) |
| **Heaviest images** | Up to three images with the heaviest previews. Each row names the screen or element that shows the image. **copied in N locales** means that several locales have their own copy of the preview. | For an image with copies, [use one image for all locales](#use-one-image-for-all-locales). For other images, [remove what the flow doesn't need](#remove-what-the-flow-doesnt-need). |

When the Android download weighs over 500 KB, the **Issues** panel lists a warning about the size of the flow. To open the panel, click **Issues** in the top bar. The warning names the size of the download and a fix for its heaviest part. To open the **Flow size** dialog, click the warning.

Under the warning about the flow, the panel lists up to five images that each make up at least 10% of the Android download. Each warning names the image and how much it adds on Android. To select the element or screen that shows the image, click its warning. Then upload a smaller file. If the image has a copy in several locales, [use one image for all locales](#use-one-image-for-all-locales) instead.

The builder measures the assets when you publish the flow. To see how your changes affect the size, or to clear the warning, publish the flow again.

:::tip
To find out whether a flow is heavy before it reaches users, ask the [flow-generator skill](flow-generator-skill) to save or publish the flow. Before each save and each publish, the skill measures the flow and its images and videos. If anything is heavy, the skill names it and offers a fix.
:::

## Make a flow lighter

To decide where to start, check which part weighs the most in the **Flow size** dialog.

### Use one image for all locales

A locale with its own image file adds another preview to the assets. When the default image suits every locale, open the Localizations **Localizations** panel and [reset the row of the image](add-paywall-locale-in-adapty-paywall-builder#manage-a-row).

### Reuse a background image through a color style

Each screen or element with its own background image adds a preview to the assets, even when several of them show the same file. To add a single preview instead, save the image in a [color style](builder-reusable-styles#color-styles). Then apply the style to every screen and element that has the image as its background.

### Delete locales you don't need

Each locale adds its translation of the text content to the assets. If no users need a locale, [delete it](add-paywall-locale-in-adapty-paywall-builder#delete-a-locale).

### Remove what the flow doesn't need

Each **Image** element adds a preview to the assets, even when several of them show the same file. Detailed photos have the heaviest previews. Remove the images the flow doesn't need.

The assets also cover every screen and element, even a screen that no action opens. Delete the screens and elements the flow doesn't need.

## Keep image files small

Full-size images don't delay the first screen, but users see the preview of an image until its file loads. A smaller file loads sooner.

When you upload an image file over 1 MB, the Flow & Paywall Builder shows a **Large image** warning. To keep image files small, save them as WebP.