From ddd2d0dd8ddee1d56e87e6e4bc149bd6e5a93d11 Mon Sep 17 00:00:00 2001 From: Dominic Farolino Date: Thu, 29 Aug 2024 15:43:17 -0400 Subject: [PATCH] Use DOM's post-connection steps for script elements Use the newly-introduced DOM Standard "post-connection steps" (see https://github.com/whatwg/dom/commit/0616094da9e308fbf50e5bd1da17462dca19d121), which are run for all nodes in a batch of freshly-inserted nodes, after all DOM insertions take place. The purpose of these steps is to provide an opportunity for script executing side effects to take place during the insertion flow, but after after all DOM mutations are completed atomically. Before this, the HTML standard executed scripts during the