Skip to main content

← All talks

Javascript Pulp Fiction

Drupal Dev Days Szeged, 2014

Drupal 8 frontend, told by the characters of Pulp Fiction. How the theme layer looks to HTML/CSS developers and to JS developers, and why JS should select elements with data- attributes and leave classes to themers.

Then the story of how Overlay left core: 10 lines of JS, a UX napkin, months of UX testing, and an escapeAdmin.js that stores the last front-end page in sessionStorage. It ends with the rules for JS in Drupal 8: use JSHint, keep variables out of the global scope, declare dependencies in *.libraries.yml and stop using drupal_add_js().

Event

Drupal Dev Days

City

Szeged

Language

English

Slides

Document

Companion code

Related