0

How can I enable the javascript or jQuery in certain pages in Drupal 8? Any example will be really helpful.

Thank you.

3
  • 4
    Did you read that question, or that one?
    – alexej_d
    Commented Jun 15, 2015 at 15:37
  • Thank you Alex for your comment. I could not find that question at that time. So I started reading the whole documentation for Drupal 8 theming.
    – rashidkhan
    Commented Jun 15, 2015 at 15:58
  • If you are building a D8 theme, you can use attach_library() twig method in your twig template.
    – Alma
    Commented Jun 19, 2015 at 14:27

0

Browse other questions tagged or ask your own question.