| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <title>Page 2 - hx-preload Test</title> |
| 6 | <meta name="htmx-config" content='{"selfRequestsOnly":false}'> |
| 7 | <script src="../../../src/htmx.js"></script> |
| 8 | <script src="../../../src/ext/hx-preload.js"></script> |
| 9 | <style> |
| 10 | body { font-family: sans-serif; max-width: 600px; margin: 2em auto; } |
| 11 | .card { border: 1px solid #ccc; padding: 1em; margin: 1em 0; border-radius: 4px; } |
| 12 | a { color: #07c; } |
| 13 | </style> |
| 14 | </head> |
| 15 | <body> |
| 16 | |
| 17 | <h1>Page 2</h1> |
| 18 | <p>You navigated here. The request should have been preloaded.</p> |
| 19 | |
| 20 | <div class="card"> |
| 21 | <a hx-boost="true" href="index.html">Back to index (boosted)</a> |
| 22 | </div> |
| 23 | |
| 24 | </body> |
| 25 | </html> |