Stability and performance requirements

This section covers the stability and performance of Playables.

1 Initial bundle size

To properly test this requirement, the game may need to be ingested with the developer portal and then tested in the test suite. Alternatively hosting with compression on or zipping all of the initial loaded content can provide a good approximation.

  • Game initial bundle size MUST be less than 30 MiB.
  • Game initial bundle size SHOULD be less than 15 MiB.

2 Total bundle size

  • By default, the game total bundle size MUST be less than 250 MiB. Exceptions to this can be found in the FAQ.
  • Game SHOULD only load the minimal amount of data needed to enable interactivity and lazy load the other data as needed.

3 Individual file size

  • Every individual file within the game MUST be less than 30 MiB.
  • Every individual file within the game SHOULD be less than 512 KiB.

4 Saved game size

  • Saved game size MUST be less than 3 MiB.
  • Saved game size SHOULD be less than 500 KiB.

5 Load time

  • Game SHOULD finish loading and allow user interaction in under 5 seconds.

6 Crashes

  • Game MUST NOT have consistently reproducible crashes.
  • Game MUST NOT crash the YouTube app, YouTube website, or other user software.

7 Technologies used

  • Game MUST be based on standards-compliant Web APIs (e.g., JavaScript, Canvas, WebGL) as defined by standards bodies (e.g., W3C, WHATWG).
  • Playables MUST be compatible with all browsers that YouTube supports (including Edge, Chrome, Firefox, etc.)
  • Playables MUST be compatible with the YouTube app on Android and iOS.

8 File references

  • Game MUST only use relative paths when referring to other files in the game bundle.
  • Game MUST NOT use absolute paths, as they will fail to load.

9 File names

  • Files in the game bundle MUST only contain alphanumeric and a few special characters: _, -, ..

You can use the Playables bundle analyzer to conduct an initial validation of the game bundle. This validation will assess the size of each individual file, the overall bundle size, and any potential filename inconsistencies.