- Issue created by @tanner.svg
- Merge request !6Issue #3500324: Remove global attachment of core/drupal.collapse to eliminate... → (Open) created by Unnamed author
I was conducting an inventory of the scripts attached to the DOM on various pages and noticed that the core/drupal.collapse
library is being attached globally by the ckeditor_details
module. This library introduces unnecessary dependencies (e.g., core/drupal.form
, core/jquery
), as well as the three scripts included by the library, on pages that do not contain details accordions.
This global attachment increases page load size and may impact performance on pages where these scripts are not needed.
Since Drupal 10 and newer versions do not support Internet Explorer 11 (IE11), perhaps we can just remove the .module
file altogether, thus removing the library dependencies.
Active
2.1
Code