Debian Codegraph @

www/src/content/reference/04-config/14-htmx-config-noSwap.md

raw symbols SCIP
1 ---
2 title: "htmx.config.noSwap"
3 description: "HTTP status codes that skip swap"
4 ---
5
6 The `htmx.config.noSwap` option is an array of HTTP status codes for which htmx will not perform a content swap.
7
8 **Default:** `[204, 304]`
9
10 ## Example
11
12 ```javascript
13 htmx.config.noSwap = [204, 304, 205];
14 ```
15
16 ```html
17 <meta name="htmx-config" content='{"noSwap":[204,304,205]}'>
18 ```
19
20 Responses with these status codes will trigger events but won't swap content.