| 1 | --- |
| 2 | title: "htmx.config.defaultTimeout" |
| 3 | description: "Default timeout for requests in milliseconds" |
| 4 | --- |
| 5 | |
| 6 | The `htmx.config.defaultTimeout` option sets the default timeout for all htmx requests. |
| 7 | |
| 8 | **Default:** `60000` (60 seconds) |
| 9 | |
| 10 | ## Example |
| 11 | |
| 12 | ```javascript |
| 13 | htmx.config.defaultTimeout = 30000; // 30 seconds |
| 14 | ``` |
| 15 | |
| 16 | ```html |
| 17 | <meta name="htmx-config" content='{"defaultTimeout":30000}'> |
| 18 | ``` |
| 19 | |
| 20 | Requests that exceed this timeout will be aborted. |