Optimisation Overview

One of the main goals of Luna is provide flexible yet simple tooling for optimising the size of HTML5 builds. Luna employs many techniques ranging from utilizing web-friendly formats of the assets to sophisticated repacking of data to cut down the download size, speed up startup time and runtime performance.

The above becomes especially critical in Playable Ad setting, as the majority of networks limit the size of the playable (i.e. to 5Mb) along with prohibiting network communication, which cuts off the possibility to download any additional data on the fly. In addition to that, Playable Ads have to start fast - otherwise the impression might be discarded leading to poor overall performance.

Where to start

First of all, developers should never fall for judging the build size by inspecting the development build: it is not designed for production use of any sort as it lacks asset compression, serves each file individually and is meant purely for testing purposes on a local machine.

A good starting point would be to upload the build to Luna Playground and clicking "Download" button next to default version:

optimising-your-builds-overview-download

Clicking it will open a popup with all available network options and will hint which ones don't meet size requirements: / image: 'assets/optimising-your-builds-overview-download-popup.png'

If you see any red signs in the popup or simply want to optimise your playable size, a good starting point would be to start with inspecting size breakdown in Luna UI.