I am trying to understand a bit more about where and how jQuery is loaded in Drupal 8.
If I write a custom script file that will include some translation strings using
Drupal.t(), I need to add
core/drupal as a dependency.
I know we have a call for jQuery:
core/jquery, but hoping to have a clear understanding.
Drupal core in places uses jQuery, does calling
core/drupal include jQuery? When using
Is there a difference when doing so inside a custom behaviors wrapper?
The premise is if I write my scripts in vanilla js, will using
core/drupal and/or behaviors still call any jQuery?