Merge pull request #1006 from leiffoged/patch-1

[RFC] Trigger preload module on htmx:load
This commit is contained in:
Ben Pate 2022-12-10 09:35:58 -07:00 committed by GitHub
commit a3c414dcee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
dist/ext/preload.js vendored
View File

@ -7,7 +7,7 @@ htmx.defineExtension("preload", {
onEvent: function(name, event) {
// Only take actions on "htmx:afterProcessNode"
if (name !== "htmx:afterProcessNode") {
if (name !== "htmx:afterProcessNode" && name !== "htmx:load") {
return;
}