Skip to content

Plugin exclude some js in WEB_DIRECTORY #11505

@aoi-umi

Description

@aoi-umi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureA new feature to add to ComfyUI.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions