htmx icon indicating copy to clipboard operation
htmx copied to clipboard

Update preload extension documentation: form preloading and preload="always"

Open marisst opened this issue 1 year ago • 1 comments

Pull request should be viewed together with corresponding PR in htmx-extensions repository https://github.com/bigskysoftware/htmx-extensions/pull/106

Added documentation about

  • HX-Preload header
  • form element preloading
  • preload="always" configuration

marisst avatar Nov 05 '24 23:11 marisst

Note: leaving this PR open & on the side until the preload extension gets published with the latest update (currently 2.0.1 is still the latest on npm, thus these new docs are not correct yet)

Telroshan avatar Dec 10 '24 07:12 Telroshan

Is the link shown in https://htmx.org/extensions/preload/ correct? <script src="https://cdn.jsdelivr.net/npm/[email protected]" integrity="sha384-fkzubQiTB69M7XTToqW6tplvxAOJkqPl5JmLAbumV2EacmuJb8xEP9KnJafk/rg8" crossorigin="anonymous"></script>

It is producing this output in console: Failed to find a valid digest in the 'integrity' attribute for resource 'https://cdn.jsdelivr.net/npm/[email protected]' with computed SHA-384 integrity 'KKYgXDj/WvJAt1FI2JsD8OKSFwQwuHzZWo6EEPm0Yirsk7plaoACUYnv0qlxgOB7'. The resource has been blocked.

Also, this version doesn't seem to fix the problem of the double download of contents instead of using the cache. I'm still having this exact issue: https://github.com/bigskysoftware/htmx-extensions/issues/108

pvs-stm avatar Oct 18 '25 13:10 pvs-stm