What's up with javascript and Drupal 8

Post on 19-Jun-2015

1725 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

This talk will show what has been accomplished in the past year for core javascript and explain what's left for the last few months before code freeze. A few topics you can expect to show up: Performance Which JS library got in core and why Tools and workflow JS clean-up As well as some future-facing questions: New policies for third party JS API changes (PHP and JS) How can contrib deal with JS-related changes What's still missing for D8 There will be mention of some crazy ideas that might work from contrib.

Transcript

What's up with javascript & Drupal

Théodore 'nod_' Biadala

JS Maintainer for Drupal coreTechnical consultant @ Acquia

Frontendunited, London 2013

Who?

nod_ — February 2012(cue months of wishing for another maintainer)

seutje — August 2012

jessebeach — September 2012

8

Library Upgrade policy

Core will ship withlatest version*

Library Upgrade policy

Core will ship withlatest version*

Tools

testing

fat module

Community

Impression of a JS dev by a Drupal dev

Webchick learning Javascript

Michael Schmid, CC-BY 2.0

Javascript Clean-up#1415788

Script dependencies

hook_library_info() {

$lib['myscript'] = array(

'js' => array($path . '/somefile.js' => array()),

'dependencies' => array(

array('system', 'jquery'),

array('system', 'drupal'),

arrary('system', 'drupalSettings'),

),

);

return $lib;

}

performance?

Editor: IE10

node/1

add/article

node/add

node

0 50 100 150 200 250

JSCSSHTML

Front-end time (ms)

Editor: IE10 – No toolbar 

node/1

add/article

node/add

node

0 50 100 150 200 250

JSCSSHTML

Front-end time (ms)

Visitor: IE10

node/1

node

0 50 100 150 200 250

JSCSSHTML

Front-end time (ms)

In Drupal 8

JS libraries will be upgraded

Declare all your dependencies

Core front-end performance is… ok!

Questions?

Théodore BIADALA

@nod_

theodore.biadala@acquia.com

top related