SlideShare a Scribd company logo
Why Javascript matters
WordCamp Norway - 2014
Who I am?
• Marko Heijnen - @markoheijnen	

• Working at 1&1 Internet as their
WordPress specialist	


• WordPress core contributor	

• GlotPress core developer - @GlotPress	

• Co-author of WP_Image_Editor
Agenda
• Why, we as PHP developers, should focus
more on the Javascript side	


• Showing features of Javascript you didn’t
know	


• Ending with an awesome example
WordPress has grown
• PHP - 69.1 %	

• Javascript - 18.4 %	

• CSS 12.5 %
Current libraries we use
•
•
•
•

jQuery	

Backbone.js	

MediaElement.js	

TinyMCE	

!
!

•
•
•
•

jQuery UI	

Underscore.js	

Plupload	

zxcvbn
History
• WordPress 2.2 starts using jQuery	

• 3.5 using Backbone/Underscore for the
media dialog	


• 3.6	

• MediaElements for audio/video control	

• Heartbeat API	

• Revisions started to use Backbone
Future
• 3.9 will add playlists for audio & video	

• TinyMCE 4	

• Image editor UI
The things you want to do
often, now requires
understanding of Javascript
Opening a new media dialog
// Create the media frame.
image_frame = wp.media.frames.formatImage = wp.media({
// Set the title of the modal.
title: $el.data('choose'),
// Tell the modal to show only images.
library: {
type: 'image'
},
// Customize the submit button.
button: {
// Set the text of the button.
text: $el.data('update')
}
});
image_frame.open();
Cool stuff you

have in Javascript
getUserMedia / WebRTC
for live streaming
http:/
/www.webrtc.org/demo
https:/
/apprtc.appspot.com
Using Javascript to build
almost native apps
Node.js
Node.js
• Javascript platform	

• Uses an event-driven, non-blocking I/O
model	


• Lightweight and efficient	

• Ideal for real time application	

• http://nodejs.org/
Running a webserver
with Node.js
var http = require('http');	

http.createServer(function (req, res) {	

res.writeHead(200, {'Content-Type': 'text/plain'});	

res.end('Hello Worldn');	

}).listen(1337, '127.0.0.1');
The awesome example
WordSesh needs NodeJS
WordSesh - Problems
• Needs to be refreshed every hour	

• Has 15 minutes of silence	

• Results in accidentally playing the previous
session
WordSesh - Idea
• NodeJS lets you push new sessions	

• When the session is over, it will be
removed	


• Be able to use YouTube files as wait music	

• Create a hangout through WordPress
Control panel - two channels
Play a YouTube movie
wordsesh.wpcentral.io
Questions?
@markoheijnen	

 markoheijnen.com	

wpcentral.io	

 wordsesh.wpcentral.io

More Related Content

PPTX
How to build a web application with Polymer
PPTX
A holistic approach to web performance
PPTX
Jaggery Introductory Webinar
PPTX
Bundling your front-end with Webpack
PDF
Why NodeJS
PPTX
Using MAMP for Web Development
PPTX
Webpack
PPTX
MEAN stack
How to build a web application with Polymer
A holistic approach to web performance
Jaggery Introductory Webinar
Bundling your front-end with Webpack
Why NodeJS
Using MAMP for Web Development
Webpack
MEAN stack

What's hot (20)

PDF
Booting up with polymer
ODP
Compress
PPTX
Building great spa’s with angular js, asp.net mvc and webapi
PPTX
PPTX
Building WordPress sites with AngularJS and the RESTful plugin JSON API @ Dev...
PPTX
J&Js adventures with agency best practice & the hybrid MVC framework - Umbrac...
PDF
Google Developers Group Cloud Los Angeles, Progressive Web Applications by Ta...
PPTX
Getting SEO performance in Angular Meteor with ngmeta
PPTX
Improve your web dev workflow in Visual Studio
PDF
Webpack DevTalk
PPTX
Html5 & less css
PPTX
AngularJS vs React JS vs Node JS: Which is Best For Web Development ?
PPTX
Evolution of java script libraries
PDF
WordPress as a Headless CMS - Bronson Quick
PPTX
Improving build solutions dependency management with webpack
PDF
A modern front end development workflow for Magnolia at Atlassian
PDF
Nuxt로 사내서비스 구현하면서 얻은 경험 공유
PDF
Firebase and AngularJS
PDF
Shift Remote: JS - Javascript Build Tools: Past & Beyond - Shedrack Akintayo
PPTX
Booting up with polymer
Compress
Building great spa’s with angular js, asp.net mvc and webapi
Building WordPress sites with AngularJS and the RESTful plugin JSON API @ Dev...
J&Js adventures with agency best practice & the hybrid MVC framework - Umbrac...
Google Developers Group Cloud Los Angeles, Progressive Web Applications by Ta...
Getting SEO performance in Angular Meteor with ngmeta
Improve your web dev workflow in Visual Studio
Webpack DevTalk
Html5 & less css
AngularJS vs React JS vs Node JS: Which is Best For Web Development ?
Evolution of java script libraries
WordPress as a Headless CMS - Bronson Quick
Improving build solutions dependency management with webpack
A modern front end development workflow for Magnolia at Atlassian
Nuxt로 사내서비스 구현하면서 얻은 경험 공유
Firebase and AngularJS
Shift Remote: JS - Javascript Build Tools: Past & Beyond - Shedrack Akintayo
Ad

Similar to Why Javascript matters (20)

PDF
APIs for modern web apps
PDF
Desktop apps with node webkit
PPTX
Mobile native-hacks
KEY
Developing High Performance Web Apps - CodeMash 2011
PDF
Mobile Hybrid Development with WordPress
PDF
GeneralMobile Hybrid Development with WordPress
PPT
Html5 Future of WEB
KEY
Web Apps
PDF
Extending WordPress as a pro
PDF
Node.js to the rescue
PDF
You Got React.js in My PHP
PDF
REST In Action: The Live Coverage Platform at the New York Times
PDF
Mobile Vue.js – From PWA to Native
PPTX
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
PPTX
Disrupting the application eco system with progressive web applications
PDF
Tech io nodejs_20130531_v0.6
PPTX
JavaScript on the Desktop
PPTX
Using Javascript in today's world
PDF
Masterin Large Scale Java Script Applications
PDF
Anatomy of a Progressive Web App
APIs for modern web apps
Desktop apps with node webkit
Mobile native-hacks
Developing High Performance Web Apps - CodeMash 2011
Mobile Hybrid Development with WordPress
GeneralMobile Hybrid Development with WordPress
Html5 Future of WEB
Web Apps
Extending WordPress as a pro
Node.js to the rescue
You Got React.js in My PHP
REST In Action: The Live Coverage Platform at the New York Times
Mobile Vue.js – From PWA to Native
Make Cross-platform Mobile Apps Quickly - SIGGRAPH 2014
Disrupting the application eco system with progressive web applications
Tech io nodejs_20130531_v0.6
JavaScript on the Desktop
Using Javascript in today's world
Masterin Large Scale Java Script Applications
Anatomy of a Progressive Web App
Ad

More from Marko Heijnen (20)

PDF
Custom coded projects
PDF
Security, more important than ever!
PDF
My Contributor Story
PDF
WooCommerce & Apple TV
PDF
The moment my site got hacked - WordCamp Sofia
PDF
Mijn site beveiliging
PDF
The moment my site got hacked
PDF
My complicated WordPress site
PDF
Protecting your site by detection
PDF
GlotPress aka translate.wordpress.org
PDF
Writing clean and maintainable code
PDF
Let's create a multilingual site in WordPress
PDF
Bootstrapping your plugin
PDF
The development and future of GlotPress
PDF
The code history of WordPress
PDF
Building plugins like a pro
PDF
Perfect your images using WordPress - WordCamp Europe 2013
PDF
Dealing with media
PDF
The awesome things you can do with images inside WordPress
PDF
De nieuwe media flow in WordPress en hoe verder
Custom coded projects
Security, more important than ever!
My Contributor Story
WooCommerce & Apple TV
The moment my site got hacked - WordCamp Sofia
Mijn site beveiliging
The moment my site got hacked
My complicated WordPress site
Protecting your site by detection
GlotPress aka translate.wordpress.org
Writing clean and maintainable code
Let's create a multilingual site in WordPress
Bootstrapping your plugin
The development and future of GlotPress
The code history of WordPress
Building plugins like a pro
Perfect your images using WordPress - WordCamp Europe 2013
Dealing with media
The awesome things you can do with images inside WordPress
De nieuwe media flow in WordPress en hoe verder

Recently uploaded (20)

PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Cloud computing and distributed systems.
PDF
Encapsulation theory and applications.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPT
Teaching material agriculture food technology
PDF
KodekX | Application Modernization Development
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
cuic standard and advanced reporting.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Spectroscopy.pptx food analysis technology
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
NewMind AI Weekly Chronicles - August'25 Week I
Digital-Transformation-Roadmap-for-Companies.pptx
Cloud computing and distributed systems.
Encapsulation theory and applications.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Programs and apps: productivity, graphics, security and other tools
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Teaching material agriculture food technology
KodekX | Application Modernization Development
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Diabetes mellitus diagnosis method based random forest with bat algorithm
cuic standard and advanced reporting.pdf
Spectral efficient network and resource selection model in 5G networks
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Review of recent advances in non-invasive hemoglobin estimation
Understanding_Digital_Forensics_Presentation.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Unlocking AI with Model Context Protocol (MCP)
Spectroscopy.pptx food analysis technology
MIND Revenue Release Quarter 2 2025 Press Release
NewMind AI Weekly Chronicles - August'25 Week I

Why Javascript matters