PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

Preload

Usually, content is loaded only when it starts being used. That explains why it often takes a moment for an image to appear in a GuiObject|GUI, or a Mesh|mesh to appear in a BasePart|part, or why a Sound|sound doesn’t play for the first time. All because the asset has not yet finished loading. Preload is used to load this content beforehand, so that it works instantly.

Parameters

Name Type Default Description

Returns

Return Type Summary

Code Samples


ContentProvider:Preload

This example will preload the asset with id “12222058” when a LocalPlayer loads a game.