> For the complete documentation index, see [llms.txt](https://docs.ultramarinastudios.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ultramarinastudios.com/theme-settings/optimizations.md).

# Optimizations

### Performance

* **Enable instant.page library** to preload the next page as a user hovers over a link. This will feel faster to the user, but it will not impact performance scores done by testing tools such as Google lighthouse, as these tools only measure the performance of the initial page load. There is a chance that instant.page will not work with third party apps or analytics services depending on how they are loaded, so you may wish to disable this option if experiencing any issues with your apps.

### Accessibility

* **Show focus outlines on text inputs:** By default, the browser will show an outline around inputs that are currently focused. This is required for accessibility if the user is using a screenreader or keyboard to navigate. If this option is **disabled**, we use a third-party library to detect if a user is using a mouse or touch screen, and hide the outlines. If you want to minimize the use of uneccessary javascript libaries or you are concerned about accessibility, you can enable this option.
* **Video description button on videos:** By default, we use the video alt text as a video description in order allow merchants to meet the [1.2.1 Audio-only and Video-only (Prerecorded)](https://www.w3.org/TR/WCAG22/#audio-only-and-video-only-prerecorded) success criterion of the Web Content Accessibility Guidelines. You can disable this option if needed, but please note that not including an alternative to video content is an accessibility failure and may put you at a increased risk of litigation.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ultramarinastudios.com/theme-settings/optimizations.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
