# Remove loading delays (Lazy Loading & Late-Loading Upload Fields)

By default, Shopify apps load after the page is generated. If you'd like to decrease the time it takes to load the app on your product pages, follow the instructions below.

1\. From your Shopify admin, click **Online Store**, then click **Themes.**

2\. Find the theme you want to edit, click the **Actions** button, then click **Edit code.**

<figure><img src="/files/Dy5llnLZe0XKbh1vWkrT" alt=""><figcaption></figcaption></figure>

3\. Click on the *theme.liquid* file that's located in **Layouts** folder.

<figure><img src="/files/18JTk6R1tVUowVTklraq" alt=""><figcaption></figcaption></figure>

4\. Paste the following code snippet after the **\<head>** tag.

```html
<script src="//d1liekpayvooaz.cloudfront.net/apps/uploadery/uploadery.js?shop={{shop.permanent_domain}}"></script>
```

**Note:** Please note that if you see an error once you paste this snippet of code (*Avoid parser blocking scripts..*), you can ignore this.

<figure><img src="/files/dUF7gXmJcRm6wmbDLZ7s" alt=""><figcaption></figcaption></figure>

5\. Save your changes.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://shoppad.gitbook.io/uploadery/troubleshooting/decrease-uploaderys-load-time.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
