Commit fb68dfb
authored
Preload extension: hx-boost, no side effects, HX-Preloaded header, form support, tests and JSDocs (#106)
* Implement form preloading
* Implement preload extension tests
* Remove redundant elements from tests
* Add support for xh-boost and implement request matching tests
* Add JSDocs and refactor for readibility
* Simplify code
* Fix faulty <button> preload
* Add test for preload='always'
* Adjust version number
* Remove side effects (e.g. loading indicator) and add HX-Preload header
* Add HX-Preload header to requests preloaded without passing through HTMX.ajax()
* Fixed link to documentation in extension description
* Renamed preloaded header from HX-Preload to HX-Preloaded
* Fix bug of preloading hx-post form and improve documentation
* Remove forgotte console.log()
* Fix errors and types discovered by @Telroshan in PR review
* Add .DS_Store to .gitignore
* Fix error of two preload requests when label contains input and added test
* Preload button type=submit and add test for it
* Add test for and (inverse order)
* Add a test checking that click request does not include preloaded header1 parent a1bfe06 commit fb68dfb
File tree
15 files changed
+1564
-274
lines changed- src/preload
- test
- ext
15 files changed
+1564
-274
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
0 commit comments