Skip to content

Skip create panel when no Web Components on page #61

@heybran

Description

@heybran

Hi @Matsuuu,

Thank you for creating this amazing tool.

I have folked and cloned the repo, and as I was walking thru the codes to get a better understanding how it works under the hood. I see this this TODO comment you left.

https://github.com/Matsuuu/web-component-devtools/blob/main/lib/devtools-init.js#L2

If I may work on that?

My thoughts process:

  • Upon document idle, check if there's any Web Components on page, it none, skip create panel
  • Though there is another scenario where no initial Web Components to start with, but the web page might render Web Components dynamically when user interacts with the page, so I think we should handle this as well by using MutationObserver?

Brandon

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions