Skip to content

mediapipe adds <script>s to the DOM each time a task runner is created #5697

Open
@tzahola

Description

@tzahola

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.

Metadata

Metadata

Labels

platform:javascriptMediaPipe Javascript issuesstat:awaiting googlerWaiting for Google Engineer's Responsetask:image segmentationIssues related to image segmentation: Locate objects and create image masks with labelstype:supportGeneral questions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions