> For the complete documentation index, see [llms.txt](https://tmdarneille.gitbook.io/seirfx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tmdarneille.gitbook.io/seirfx/javascript/additional-topics/ajax-localstorage.md).

# AJAX w/JSON and Localstorage

## Objectives

* Utilize JSON files to separate data from logic
* Use AJAX to load data from JSON files in development and production environments
* Use local storage to store data (semi)-persistently on a user's browser

These additional topics are handy for the following scenarios:

* Loading large amounts of data into JavaScript, as opposed to hardcoding the object.
* Saving your user's state locally in the browser.
