[wp-trac] [WordPress Trac] #47510: Developer tool - Best Practice - input comment field Does not use passive listeners
WordPress Trac
noreply at wordpress.org
Sat Mar 28 06:24:27 UTC 2020
#47510: Developer tool - Best Practice - input comment field Does not use passive
listeners
------------------------------------+--------------------------------------
Reporter: efilippucci | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Comments | Version: 5.2.1
Severity: normal | Resolution:
Keywords: has-patch needs- | Focuses: javascript, performance
refresh |
------------------------------------+--------------------------------------
Comment (by slkfsdf8y34ljhsfsdfkuhfkl84hj):
"In order to use passive listeners the handlers need to be written in a
way that does not rely on event.preventDefault(). "
Otherwise it won't be compatible with the minority of IE11 users,
otherwise it would be working as expected?
I did some tests with the lighthouse scores in terms of ranking and I
found that on many occasions it helped rankings overall.
The only big score minus is these passive listeners which can be fixed
only when using a CDN that basically turns the site into a static one but
it is a costly solution.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47510#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list