We can keep track of <script> tags inside a node tree with the same src and make sure to output/render them only once.
This would make it easy to define self-contained components that rely on JS at runtime. We could reuse the same component multiple times in the same page and ensure that their JS would only be executed once.
We can keep track of
<script>tags inside anodetree with the samesrcand make sure to output/render them only once.This would make it easy to define self-contained components that rely on JS at runtime. We could reuse the same component multiple times in the same page and ensure that their JS would only be executed once.