JS warning: contextual.js Adding non-passive event listener to a scroll-blocking 'touchstart' event

Created on 15 September 2023, 9 months ago

Problem/Motivation

Seeing this warning in JS console:

Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

With stack trace:

add             @ /core/assets/vendor/jquery/jquery.min.js?v=3.7.0:2
(anonymous)     @ /core/assets/vendor/jquery/jquery.min.js?v=3.7.0:2
each            @ /core/assets/vendor/jquery/jquery.min.js?v=3.7.0:2
each            @ /core/assets/vendor/jquery/jquery.min.js?v=3.7.0:2
Le              @ /core/assets/vendor/jquery/jquery.min.js?v=3.7.0:2
on              @ /core/assets/vendor/jquery/jquery.min.js?v=3.7.0:2
delegate        @ /core/assets/vendor/backbone/backbone.js:1411
delegateEvents  @ /core/assets/vendor/backbone/backbone.js:1402
setElement      @ /core/assets/vendor/backbone/backbone.js:1366
_ensureElement  @ /core/assets/vendor/backbone/backbone.js:1448
h.View          @ /core/assets/vendor/backbone/backbone.js:1309
r               @ /core/assets/vendor/backbone/backbone.js:2070
initContextual  @ /core/modules/contextual/js/contextual.js?v=10.1.3:121
(anonymous)     @ /core/modules/contextual/js/contextual.js?v=10.1.3:197

Steps to reproduce

Load site homepage as Authenticated User 1; view JS console in Developer Tools.

  • Drupal 10.1.3 (a real website, upgraded from 9.5.10)
  • Many contrib modules enabled.
  • Radix 4 theme (Bootstrap 4 dependency, which has dependency on core/jquery)
  • Docker Desktop for Mac 4.21.1
  • DDev 1.22.1
  • Google Chrome (116.0.5845.187) for Mac
  • uBlock Origin chrome extension
  • macOS 12.6.6

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
ContextualΒ  β†’

Last updated 23 days ago

Created by

πŸ‡ͺπŸ‡¨Ecuador jwilson3

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jwilson3
  • πŸ‡ͺπŸ‡¨Ecuador jwilson3

    It is entirely possible this is coming from one or more contrib modules, however two points:

    1. The stack trace doesn't mention anything outside of core JS assets, so I don't know where/how to start troubleshooting this.
    2. There are 50 instances of this warning message in the console log, not just one.

    β†’

Production build 0.69.0 2024