Comfy-Org / Comfy-Org/ComfyUI

Plugin exclude some js in WEB_DIRECTORY

Open
#11,505 0 comments 0 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Feature Idea

```
All Javascript .js files will be loaded by the browser as the Comfy webpage loads. You don’t need to specify the file your extension is in.
```
all .js will be loaded, but sometime i don't need all js at started, for example:
https://github.com/aoi-umi/ComfyUI-ultimate-openpose-editor/blob/b252a3f724d5179dd7eaab47adf8dbd2e02e37a7/js/openpose_editor.js#L115
the openpose editor is loaded by an iframe, the ui/**/*.js are not required before the editor is opened

the script will be loaded twice(it is a vue app, if there is an element id="app", then the editor will mount on it?)
Image

### Existing Solutions

_No response_

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.