After upgrading to Drupal 10, there are console errors:
Uncaught TypeError: $(...).find(...).once is not a function at Object.attach (anti-flicker.js?v=10.0.7:7:12)
Write a patch based on this article: https://www.drupal.org/node/3158256 →
RTBC
9.3
Code
Here is a patch.
Patch applies and JS/console error is gone