> For the complete documentation index, see [llms.txt](https://shoppad.gitbook.io/smile/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shoppad.gitbook.io/smile/decrease-load-time.md).

# Decrease load time

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

1\. From your Shopify admin, click **Online Store** to arrive at the **Themes** page.

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

<figure><img src="https://3515138802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqAxweFDc65KUhPuvgUv9%2Fuploads%2Fgit-blob-a80106c85c0fde00bd378e41d52790c44b8c8531%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

3\. On the left side, click on the **theme.liquid** file in the Layout folder.

<figure><img src="https://3515138802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqAxweFDc65KUhPuvgUv9%2Fuploads%2Fgit-blob-731a8aaf0a44b8f3f78f02325f202e631796d9b7%2Fsmile_themeliquid_AS.png?alt=media" alt=""><figcaption></figcaption></figure>

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

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

<figure><img src="https://3515138802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqAxweFDc65KUhPuvgUv9%2Fuploads%2Fgit-blob-35b1e3bf5d37db8425c7214f3a68b8f0849b57b8%2Fsmile_fastloading_AS.png?alt=media" alt=""><figcaption></figcaption></figure>

5\. Save your changes.
