Loading Javascript in Drupal 8
Drupal 8 now uses libraries concept to load javascript into the Drupal 8 website. Libraries are defined in the libararies.yml file in the root directory of the module or theme folder. Following will be the general file structure to add … Continued