[← All talks](/talks)

# Javascript for backend developers

2015

[Open the slides (PDF)](https://tresbien.tech/sites/default/files/talks/javascript-for-backend-developers.pdf)

 

 

JavaScript for PHP developers who sort of care about the frontend and just want things to work. A quick tour of the JS landscape and its buzzwords, and the pitfalls that catch backend developers: variable scope, callback hell, `'use strict'`, types and "associative arrays".

Then the Drupal parts that you need: `Drupal.behaviors` with attach and detach, the context after an AJAX call, and `once()` so that your code doesn't run twice. JavaScript speed is rarely the problem, DOM repaint and reflow are.



 

Event

 

 

City

 

 

Language

English

 

 

Slides

Document

[javascript-for-backend-developers.pdf](/sites/default/files/talks/javascript-for-backend-developers.pdf) (5.57 MB)

 



 

 

Companion code



 

Related