# 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.


---

# 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/fablet/decrease-fablets-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.
