# Asynchronous locale resources download

To minimize the bundle size, especially as your application scales, you may want to take advantage of code splitting.&#x20;

For instance, if the user's default language is English, only the English text resources are initially downloaded. If the user switches to another language, such as French, the corresponding French text resources are then downloaded asynchronously.

Find 👉 [here](https://stackblitz.com/edit/react-ts-zgmo8u?file=i18n%2Fi18n.ts) 👈 a live example of how you should setup your repo to enable code splitting. &#x20;


---

# 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://docs.i18nifty.dev/asynchronous-locale-resources-download.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.
