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.
I am trying to workout what is the correct way of adding a third party javascript library to an Omega 4.0 sub-theme. By default there are several libraries in the 'libraries' folder. I assume that other JS libraries should be located there. This can be achieved by installing the library with drush make
or bower install <library_name>
.
Once the library is installed what should one do next? Do I simply modify the SUBTHEME.info file to include the new library (e.g. scripts[] = libraries/eventEmitter/EventEmitter.min.js
) or is there some other more refined method of loading it?