L
L
Limbo2017-01-29 16:44:04
Drupal
Limbo, 2017-01-29 16:44:04

How to include jQuery in Drupal 8?

Hello
How to include jQuery in Drupal 8 ? needed for the masonry module to work
For D7 there is a jQuery Update module, but for D8 there is no module

Thanks ))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
afi13, 2017-01-29
@afi13

jQuery is at the core of both the seven and the eight. The jQuery Update module simply allows you to update the library version in Drupal 7.
In D8, you need to add your theme file [theme name].libraries.yml to libraries:
dependencies:
- core/jquery

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question