I am developing a component for a Joomla frontend site and when I include JHtml::_('formbehavior.chosen', 'select');
in the template form, I get this message in JavaScript Chrome Console (Mac OS X):
[Violation] 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
The message doesn't happen in Firefox, but I am supporting an older code for a client and beyond that message I get a really slow page load using chosen, even in Firefox.
Does anyone have an idea of how to solve this, or any alternative to chosen nowadays?
Version 1.6.2
of JQuery/Chosen and the last version of that is1.8.7
. The test page of Chosen uses an older jQuery library too, however I still cannot get the console error. I mean I've seen the error but it came from the old jQuery library in the first place not from the Chosen script. I think alternatively you can try Select2 library, I have not checked that deeper yet but it does not look bad either. select2.org