Open
Description
Every time you create e.g. an ImageSegmenter
with ImageSegmenter.createWithOptions({wasmBinaryPath: ..., wasmLoaderPath: ...})
a <script>
element is added to the document with wasmLoaderPath
. If you later create a new instance, then another <script>
is appended to the DOM. Every single time.
It would be nice if mediapipe only added a <script>
to the DOM if the script in question wasn't loaded previously, thus preventing apps from accumulating many redundant nodes in their DOM.