[wp-trac] [WordPress Trac] #47510: Developer tool - Best Practice - input comment field Does not use passive listeners
WordPress Trac
noreply at wordpress.org
Fri Nov 8 14:39:37 UTC 2019
#47510: Developer tool - Best Practice - input comment field Does not use passive
listeners
-------------------------+--------------------------------------
Reporter: efilippucci | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 5.2.1
Severity: major | Resolution:
Keywords: has-patch | Focuses: javascript, performance
-------------------------+--------------------------------------
Changes (by eherman24):
* keywords: => has-patch
Comment:
I've attached a patch which sets the event listeners to passive, and
ultimately resolves the notice thrown in Lighthouse.
**Before Patch:**
https://cldup.com/s1YO-ay-Gd.png
**After Patch:**
https://cldup.com/wBq0Ha6LO4.png
**Tests:**
✅Lighthouse audits run using TwentyNineteen
✅Lighthouse audits run using TwentyTwenty
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47510#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list