Writing Javascript and jQuery for Drupal

gapple

You know the basics of JavaScript and jQuery, but how do you get it to work on your new Drupal 8 site?

For those new to Drupal this session will start with understanding Drupal 8's asset libraries, and the tools available to add javascript functionality to your HTML. I'll cover common pitfalls that may affect your site’s performance and demonstrate security best practices, that will help beginners get off on the right start and help intermediate developers keep their code clean.

Attendees will take away:

  • Adding JavaScript to your theme or module in Drupal 8.
  • How to use Drupal.behaviors, and when not to.
  • Steps to integrate third-party javascript libraries into a Drupal module.
  • Why you should care about new browser features such as Content Security Policy.
  • Finally get rid of that pesky inline Javascript.

Session Track

Front End

Experience Level

Beginner

Drupal Version