Problem/Motivation
Bootstrap and Popper libraries do not require jQuery any more.
Drupal Core is also not requiring jQuery by default.
jQuery 3.4.1 is around 86kb compressed. That is quite a bit of JS code that needs to be parsed and executed per each page load.
We should try to remove jQuery dependency from our JS code.
states.js use closest which will probably be tricky.
entity-browsers.tabs.js depends on entity_browsers module JS code which uses jQuery but it seems that both calls for Drupal.theme.entityTabs and Drupal.theme.entityTab are again wrapped in $() which means we can just return a string or HTML element.
navbar.js has a lot of code but seems nothing too tricky to replace.
tabledrag.js use jQuery.extend but we should be able to just to Drupal.theme.tableDragChangedWarning = function () {...}; for this.
Issue fork bs_base-3107476
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pivica commentedComment #3
pivica commentedComment #5
pivica commentedComment #7
pivica commentedDone.