Skip to content

Perf: Do not add document-level blocking touch listeners #3787

@ebidel

Description

@ebidel

All polymer apps get a touch listener added to document by default?

screen shot 2016-07-19 at 5 46 31 pm

screen shot 2016-07-19 at 5 47 01 pm

screen shot 2016-07-19 at 5 47 29 pm

Doing so is typically frowned upon b/c it can have negative effects on page load and scrolling perf, especially on mobile. What are these events for? Can they be passive events by default...or can we have users opt-into passive events somehow if they know they're not going to call preventDefault()?

https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md

cc @RByers @azakus

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions