10 Things you didn't know your browser could do
Jan Krutisch

Preface

This presentation was first shown (in this form) at Eurucamp 2013.

Whereever features are prefixed, I use the webkit prefix. I haven't done this to bash Firefox or any other browser but to keep the demo source readable. Which features are available in which prefixed or unprefixed form should be clear from the included caniuse.com embeds.

I'm currently running Chrome 28. To enable CSS regions (#9), you need to enable "Experimental Webkit Features" at chrome://flags

Additionally, showing off SSE (#2) needs a running SSE event source. As I didn't have the time to properly set this up on a server, You'd have to run it yourself on localhost:8080. The source for my demo project written in node.js is available at github.com/halfbyte/mini-sse.

Last but not least, to use the (stupid) LEAP Motion demo included as a bonus, you obviously need a LEAP Motion controller and the driver needs to have Web Apps enabled.

Now

#1 Viewport Units

Viewport Units

100vh == Height of Viewport

100vw == Width of Viewport

100vmin == Smaller of Both

100vmax == Larger of Both

Viewport Units

width: 50vw; font-size: 2vh;
height: 25vh;
height: 25vh;

Viewport Units

#2 Server Sent DOM events

SSE

SSE Server Response

text/event-stream

event: tick
id: 8
data: Tick 1376489698882

event: test
id: 211
data: Random Message 0.9020805666223168

event: tick
id: 9 
data: Tick 1376489699884  
  

SSE

#3 FileReader/ TypedArrays

FileReader

FileReader

github.com/halfbyte/ilbm-decoder

No Canvas? Damn.

FileReader

Typed Arrays

#4 Emscripten

Emscripten

Emscripten

LLVM to JavaScript/asm.js

Mid range

#5 Page Visibility API

Page Visibility

Page Visibility API

#6 Web Audio API

Web Audio API

Web Audio API

liv3c0der.com

Web Audio API

#7 Fullscreen API

Fullscreen API

Fullscreen API

Futare

#8 CSS Filters

CSS Filters

CSS Filters

CSS Filters

#9 CSS Regions

CSS Regions

Oh freddled gruntbuggly, Thy micturitions are to me, As plurdled gabbleblotchits, On a lurgid bee, That mordiously hath bitled out, Its earted jurtles, Into a rancid festering confectious inner-sphincter. [drowned out by moaning and screaming] Now the jurpling slayjid agrocrustles, Are slurping hagrilly up the axlegrurts, And living glupules frart and slipulate, Like jowling meated liverslime, Groop, I implore thee, my foonting turling dromes, And hooptiously drangle me, With crinkly bindlewurdles, Or else I shall rend thee in the gobberwarts with my blurglecruncheon, See if I don't.

CSS Regions

#10 getUserMedia

getUserMedia

getUserMedia

getUserMedia

One More Thing

#11 LEAP Motion

LEAP Motion

LEAP Motion

<script src="//js.leapmotion.com/0.2.0/leap.min.js"></script>

Thank you!

/

#