---
title: "Function: preload() | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/functions/IframeApi.preload/"
---

# Function: preload()

> > **preload**(): `void`

Preloads resources of the web-to-print editor.

## Returns

`void`

## Example

``` html
   <head>
       <meta charset="utf-8" />
       <title>Customer's Canvas Quick Start Sample Page</title>
       <!-- The IFrame API script. IMPORTANT! Do not remove or change the ID. -->
       <script id="CcIframeApiScript" type="text/javascript" src="/cc/Resources/Generated/IframeApi.js">
       </script>
       <!-- Preloading resources of the editor. -->
       <script>CustomersCanvas.IframeApi.preload();</script>
   </head>
```
