Last updated February 5, 2020
Theming8.8.x

An overview of the Drupal and JavaScript ecosystem as it relates to themes. JavaScript is loaded via asset libraries, there are a bunch of libraries already in core including jQuery. This tutorial provides a brief orientation to some of the JavaScript included in core.

In this tutorial we'll:

  • Preview the JavaScript ecosystem in Drupal
  • Find pointers to tutorials where you can learn more about adding JavaScript to a theme or module
  • Learn about examples of JavaScript in Drupal core that are useful to review for learning purposes

By the end of this tutorial you should have a good overview of how JavaScript is used throughout Drupal core.