How do I force a JavaScript library to load in the < head > in Drupal 8?
Here's my themename.libraries.yml file:
zaccordion:
version: 1.x
js:
js/jquery.zaccordion.js: { header: true }
js/jquery.zaccordion.min.js: { header: true }
js/zaccordionUsage.js: { header: true }
dependencies:
- core/jquery
It still loads in the footer however.