> For the complete documentation index, see [llms.txt](https://shoppad.gitbook.io/fablet/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/fablet/decrease-fablets-load-time.md).

# Decrease Fablet's 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**, then click **Themes.**

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

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

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

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

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

```html
<script src="//d3enctq8nuu8g4.cloudfront.net/js/detect.js?l=1&u={{ shop.permanent_domain | split: '.' | first }}"></script>
```

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

5\. Save your changes.
