Skip to content

Lighthouse report: "Does not use passive listeners to improve scrolling performance" #961

Open
@fabswt

Description

@fabswt

Description

Not exactly a bug, but Google Lighthouse will keep complaining about this unless it's fixed.

When running Lighthouse inside of Chrome, getting this in the report:

image

Does not use passive listeners to improve scrolling performance
Consider marking your touch and wheel event listeners as passive to improve your page's scroll performance. Learn more.
Source: autocomplete-js:8

That's with the latest version (1.6.2 at the time of writing.)

Reproduction

I get the same report from Lighthouse whether I run the test on my on website or the sandbox in its own window.

Expected behavior

If possible, would expect the library to use passive to possibly improve performance and pass the Lighthouse test.

Environment

  • OS: macOS
  • Browser: Version 1.38.109 Chromium: 101.0.4951.41 (Official Build) (arm64)
  • Autocomplete version: 1.6.2

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