# 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="https://3267029216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMkap5pbtP8drS780BXT6%2Fuploads%2FK7SGF2iS3qJL740KyWkk%2Fimage.png?alt=media&#x26;token=8b4707be-8344-4541-bb52-d8fef20371a7" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://3267029216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMkap5pbtP8drS780BXT6%2Fuploads%2FQ5QUCSbF2sKUlJ71AUab%2Ffablet-layout-folder.png?alt=media&#x26;token=f5dcc74e-999c-491f-a441-003e3e019de1" 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="https://3267029216-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMkap5pbtP8drS780BXT6%2Fuploads%2FwBng2Jatt5Uk1nlm4SsZ%2Ffablet-faster-loading.png?alt=media&#x26;token=d3c231f3-1d18-4e0e-b8bc-4d867d3e8665" alt=""><figcaption></figcaption></figure>

5\. Save your changes.
