Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
TroubleshootingNovember 22, 20265 min read

Slow first load: how to speed it up

First visits are slow when the browser has to download too much before it can draw, or waits on requests that run one after another.

Startbase Team
Editorial ink illustration of an overstuffed steamer trunk strapped shut on a station platform beside a tiny suitcase, the buckle in ember orange

Key takeaways

  • Measure first: run a Lighthouse or PageSpeed Insights test on the published site and read the largest items in the network waterfall.
  • Oversized images are the most common culprit, followed by one giant JavaScript bundle and requests that wait on each other.
  • Aim for the main content visible in about 2.5 seconds on a mid-range phone on mobile data.
  • Games should show a playable title screen first and load later levels and heavy assets in the background.

A slow first load, where a new visitor stares at a blank or half-built page for several seconds, usually comes down to the browser downloading too much before it can draw: uncompressed hero images of several megabytes, one large JavaScript bundle that includes every screen and library, too many font files, or data requests that run one after another instead of together. Measure the published site, fix the biggest item in the waterfall first, and repeat. For most apps, images and the bundle account for the bulk of the wait.

Measure before you change anything

  1. 01Test the published address, not the workspace preview. The preview is a development server and is slower and larger by design.
  2. 02Run PageSpeed Insights or Lighthouse in Chrome developer tools with mobile emulation. Note Largest Contentful Paint (LCP), the moment the main content appears. Google's "good" threshold is 2.5 seconds or less.
  3. 03Open the Network tab, tick "Disable cache", set throttling to "Fast 4G" or "Slow 4G", reload, and sort by size. The top five rows are your to-do list.
  4. 04Look at the waterfall shape: one long bar (a huge file) and a staircase of bars that start only when the previous one ends (a request chain) need different fixes.

Startbase's SEO guide suggests a Lighthouse performance score of 90 or more and healthy Core Web Vitals as a target (SEO docs). Treat it as a goal, not a gate.

Causes, most likely first

1. Images that are far too big

A 4000 pixel wide PNG photo displayed at 800 pixels can weigh 5 to 10 MB. Generated art and uploaded screenshots are common offenders. Fix: serve WebP or AVIF at roughly the displayed size times two for sharp screens, keep most images under about 200 KB, give every image width and height so the layout does not jump, lazy-load images below the fold, and do not lazy-load the main hero image (it is usually the LCP element). The Startbase guide on using images covers formats.

2. One bundle with everything in it

Every page, admin screen, chart library, editor and animation package ships in one JavaScript file that must download and run before anything appears. Over 500 KB of compressed JavaScript is a warning sign on phones; parsing it costs time even after the download. Fix: split by route so each page loads its own code, lazy-load heavy components (charts, maps, rich text editors, 3D viewers) when they are opened, and remove unused packages. A big date or icon library imported whole is a frequent surprise; import only what you use.

3. Request waterfalls

The page loads, then fetches the user, then the user's team, then the team's projects, then each project's stats: four or five round trips in a row, each maybe 100 to 300 milliseconds on mobile. Fix: fetch independent data in parallel, combine related reads into one query or one backend function, and render the page frame immediately with skeletons instead of waiting for all data.

4. Fonts blocking text

Six font files across three families, loaded before text can show. Fix: two families at most, only the weights you use, woff2 files, font-display swap, and preload only the one or two used above the fold. Details in fonts look different on other devices.

5. Third-party scripts

Chat widgets, analytics, heatmaps, social embeds and video players each pull in their own scripts. A few can add over a second. Fix: load them after the page is interactive or on user action (load the video player when someone taps play), and remove anything nobody looks at.

6. A slow first backend response

If the HTML and scripts arrive quickly but the page waits on its first data call, the backend is the bottleneck: a function that starts cold, a query scanning a large table without an index, or a call to a slow third-party API on every load. Check: the timing of that one request in the Network tab and the function's average duration in your backend. Fix: index the columns you filter by, cache data that rarely changes, and avoid calling outside APIs in the critical path.

Games: get to the title screen fast

Web games often load every sprite sheet, sound and 3D model before showing anything, which can mean 20 to 50 MB on a phone connection. Players leave long before that. Fix: load only what the title screen and first level need, show a real loading bar, and stream the rest in the background while the player is in the menu or level one. Compress audio (music as compressed streams rather than raw WAV), pack sprites into atlases, and use compressed 3D formats and reasonably sized textures (1024 pixels is plenty for most objects on a phone). Game performance on phones covers the runtime side.

What hosting already handles

Startbase publishes web apps, sites and games as static builds on Cloudflare Pages, which serves files from a global network close to visitors and compresses text files. So distance and server speed are rarely the issue for static assets; the size and order of what you ship is. The CDN glossary entry explains why. Republishing builds a new snapshot, and the current version stays live until the new one is ready, so measure again after each republish.

First visit versus repeat visits

A fast second visit can hide a slow first one, because the browser already has your files. Vite builds give scripts and styles file names that include a content hash, so they can be cached for a long time and only change when their content does. That makes repeat visits quick, but first-time visitors, the ones deciding whether to stay, always pay full price. Test with the cache disabled, and judge the experience of someone arriving from a search result or a shared link on a phone, not your own warmed-up browser.

The message to send the agent

Startbase's debugging guide recommends asking for a performance audit with recommendations only, before any code changes (debugging prompts). Use that, then approve the fixes:

The published home page takes about 6 seconds to show the hero on my phone. Audit first load without changing code yet: list the 10 largest files the page downloads with their sizes, the JavaScript bundle size per route, any requests that wait on another request, every font file, and third-party scripts. Then propose fixes in order of impact: WebP images at display size under 200 KB with width and height set, route-based code splitting and lazy loading for the chart and map components, parallel data fetching with skeletons, at most two font families in woff2, and deferring analytics until after load. Keep the design unchanged.

After the fixes, republish and rerun the same Lighthouse test with the same throttling, so the before and after numbers compare fairly.

Frequently asked questions

What is a good load time for a web app?

A common target is the main content visible within about 2.5 seconds (Largest Contentful Paint) on a mid-range phone on mobile data. Measure the published site, not the development preview.

Why is my app fast on Wi-Fi but slow on mobile?

Mobile connections add latency to every request, so large files and request chains hurt far more. Test with network throttling and fix the largest downloads and sequential requests first.

Is my preview slower than the published site?

Usually yes. The preview runs a development server with unminified code. Judge speed on the published address.

How big should images be on a website?

As a rule of thumb, about twice the displayed width for sharp screens, in WebP or AVIF, and under 200 KB for most images. Hero images can be a bit larger if they are the main content.

On this page

  • Measure before you change anything
  • Causes, most likely first
  • Games: get to the title screen fast
  • What hosting already handles
  • First visit versus repeat visits
  • The message to send the agent

Keep reading

More in Troubleshooting
Editorial ink illustration of an overstuffed card catalog drawer spilling index cards, the brass tab of one card in ember orange
TroubleshootingNovember 22, 2026

Why is my app slow with lots of data?

An app that slows down as data grows almost always loads or draws too much at once. Here is how to find which part is slow and the fix for each.

6 min read
Editorial ink illustration of a border checkpoint with a lowered barrier arm and a waiting parcel, the guard's stamp in ember orange
TroubleshootingNovember 22, 2026

CORS errors explained and fixed

A CORS error means the server you called did not say your website is allowed to read its answer. The fix lives on that server, or in a server function you control.

5 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.