> For the complete documentation index, see [llms.txt](https://openai.gitbook.io/code-cheatsheets/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://openai.gitbook.io/code-cheatsheets/all/html/scripts.md).

# Scripts

## defer

wait to load script until DOM finishes loading, only for external scripts

```javascript
<script src="demo_defer.js" defer></script>
```

You should defer loading all CSS files that are blocking the rendering of your page.
