Skip to content

Commit 7a0f07f

Browse files
committed
fix: head-support race condition #2599
1 parent 7dd6cd7 commit 7a0f07f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/ext/head-support.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
// store a reference to the internal API.
115115
api = apiRef;
116116

117-
htmx.on('htmx:afterSwap', function(evt){
117+
htmx.on('htmx:afterSettle', function(evt){
118118
var serverResponse = evt.detail.xhr.response;
119119
if (api.triggerEvent(document.body, "htmx:beforeHeadMerge", evt.detail)) {
120120
mergeHead(serverResponse, evt.detail.boosted ? "merge" : "append");

0 commit comments

Comments
 (0)