mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-10-02 23:35:13 +00:00
Merge pull request #1006 from leiffoged/patch-1
[RFC] Trigger preload module on htmx:load
This commit is contained in:
commit
a3c414dcee
2
dist/ext/preload.js
vendored
2
dist/ext/preload.js
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user