Skip to content

bug: slow down & memory leak due to undetached event listeners #142

@ysgit

Description

@ysgit

Steps to reproduce

  1. Go to a webpage which has DOM mutations
  2. Import and start the virtual screen reader
    const { virtual } = await import('https://unpkg.com/@guidepup/virtual-screen-reader/lib/esm/index.browser.js');
    await virtual.start({ container: document.body });
    
  3. Do some things to trigger DOM mutations
  4. Notice that elements begin to have many identical focus event listeners

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions