Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The current JavaScript used to create Chosen instances via Drupal behaviors is not performant and lacks modularization and extensibility.
Will provide patches for both 8.x and 7.x shortly.
Comment | File | Size | Author |
---|---|---|---|
#10 | optimize_javascript-2859781-7.x-10.patch | 7.92 KB | markhalliwell |
#4 | optimize_javascript-2859781-4-8.x.patch | 8.17 KB | markhalliwell |
Comments
Comment #2
markhalliwellComment #3
nagy.balint CreditAttribution: nagy.balint commentedHi!
Thanks for the patch!
Can you integrate this commit? http://cgit.drupalcode.org/chosen/commit/?id=0cbc043
Comment #4
markhalliwellComment #5
markhalliwellUgh, wrong 7.x patch... sorry.
Comment #7
nagy.balint CreditAttribution: nagy.balint commentedThanks!
I committed the d8 version first.
There was a typo at three places, drupalSsettings instead of drupalSettings.
Otherwise the code worked for me for what i tried, but we can wait in dev if it works on the long term as well.
Comment #8
nagy.balint CreditAttribution: nagy.balint commentedComment #9
nagy.balint CreditAttribution: nagy.balint at Agence Inovae commentedComment #10
markhalliwellHm. Not sure how this erroneous line got into the 7.x patch. Here's an updated version of the patch.
Comment #12
nagy.balint CreditAttribution: nagy.balint at Agence Inovae commentedCommitted.