IndieDev Games

How to make your browser game load fast

Updated

A browser game has one chance to impress: the first few seconds. If the page sits on a blank screen while a large file downloads, many players leave before they see anything. This guide covers how to measure how fast your game loads, where the weight usually hides, and what you can change without redesigning anything.

Why it matters more on the web

  • Players do not install, so they do not commit. Closing a tab costs them nothing.
  • Connections and devices vary. A game that loads instantly on your fast connection and powerful computer may take a minute on a phone.
  • The download repeats. Browsers keep some files, but you should not count on it for a new visitor.

Measure first

  1. Add up the size of the files in your export. The total, and the largest file, tell you where to look.
  2. Open the browser's developer tools, go to the Network tab, and reload your game with caching turned off. See how long it takes until the first screen appears.
  3. Use the tools' throttling setting to pretend to be on a slower connection, and try it again.
  4. If you can, test on a mid-range phone that is not yours, rather than your own computer.

If you also look at your own numbers once the game is live, keep an eye on how many visitors start playing, not only how many open the page. See what to measure in a browser game.

Where the weight usually is

  • Images. Large textures and full-resolution backgrounds. Scale them to the size you actually show, and use a compressed format your engine supports.
  • Audio. Music is often the biggest single file. Use a compressed format, shorten loops, and lower the quality of long tracks.
  • Unused assets. Test art, old levels, and sound you replaced. Engines usually include everything in the project folder unless you exclude it.
  • The engine itself. Every web export carries the engine. You cannot remove it, so there is a floor, and everything else is yours to shrink.
  • Video. Use it sparingly, and keep clips short and compressed.

Make the wait feel shorter

  • Show a loading bar or a message. A player who sees progress waits longer than one who sees nothing.
  • Start with something light. A small first scene, then load the rest while the player reads a menu.
  • Load by level. Do not download level ten before the player has finished level one.
  • Say what is happening. A short line such as "Loading the first level" is better than a blank page.

Other things browsers expect

  • Sound waits for a click. Browsers block sound until the player interacts, so a start button solves this and gives the audio a place to begin.
  • Handle the window size. Pages are resized, rotated and shown in small frames. Test the game small, large and on its side.
  • Keep everything local. On indiedev.games a game cannot reach other sites, so fonts, libraries and files from elsewhere will not load. Put them in the zip.
  • Mind the limits. Uploads here can be up to 100 MB zipped and 500 files. Most good web games are far smaller. See Upload and publish a build.

A quick checklist

  1. Note the total size and the biggest file.
  2. Shrink the biggest images and audio first.
  3. Remove anything the game does not use.
  4. Add a loading bar and a start button.
  5. Test on a slow connection and on a phone.
  6. Export again and compare the numbers.

For engine-specific steps, see the guides for Godot and Defold. The store page readiness checker covers the rest of your page.

Get new tools in your inbox

One short email when we ship a new free tool for indie developers. No spam, unsubscribe any time.

By subscribing you agree to get these emails. You must be 13 or older. We confirm by email first and never share your address. See the privacy policy.