---
title: "prewarm | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Function prewarm

-   prewarm(): void[](#prewarm)
    
    Same as MapLibre's `prewarm`, but sets the default worker URL first, as the workers it starts are the ones later used by the maps.
    
    #### Returns void
