Skip to content

console.warn for .hide() and other perf gotchas. #2250

@jdalton

Description

@jdalton

There's a known performance issue with hide & friends that jQuery would like to fix.

I've seen browsers leverage console warning used to create positive change.
For example Firefox warns of __proto__ use and this got Zepto to drop it.

I think this same technique could be used to deliver a gentle one-off warning about hide's use, or the underlying issue, and recommend an upgrade path.

I'd like to flesh out this idea for browser dev tools here for easier collaboration.

\cc @paulirish

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