htmx icon indicating copy to clipboard operation
htmx copied to clipboard

Document fragment scripts fire twice in Chrome/Edge

Open summersz opened this issue 2 years ago • 0 comments

If scripts are included in the response and the useTemplateFragments option is set to true, the scripts will fire twice.
Scripts when using document fragments are processed on insert during the insertBefore method in Chrome/Edge but not Firefox. They are then ran again by the evalScript function.

This is related to #1977

summersz avatar Nov 22 '23 14:11 summersz