Debian Codegraph @

www/src/content/reference/03-events/15-htmx-after-process.md

raw symbols SCIP
1 ---
2 title: "htmx:after:process"
3 description: "After htmx processes a DOM node"
4 ---
5
6 The `htmx:after:process` event fires after htmx has finished processing a DOM node or subtree.
7
8 ## When It Fires
9
10 - After initial page load processing completes
11 - After new content has been processed and behaviors attached
12 - After `htmx.process()` completes
13
14 ## Event Detail
15
16 Empty - no additional context provided.
17
18 ## Example
19
20 ```javascript
21 htmx.on('htmx:after:process', (evt) => {
22 console.log('Finished processing:', evt.target);
23 // Initialize third-party widgets on processed content
24 });
25 ```
26
27 This is useful for initializing JavaScript widgets after htmx processes new content.