Upgrade to Pro — share decks privately, control downloads, hide ads and more …

初心者のためのWeb標準技術 / Study Web Standards

初心者のためのWeb標準技術 / Study Web Standards

2015年8月27日に行われたHTML5ビギナーズ勉強会の「初心者のためのWeb標準技術」のセッションの資料です。

Shogo Sensui

August 27, 2015
Tweet

More Decks by Shogo Sensui

Other Decks in Technology

Transcript

  1. function Human(name) { if (name === undefined) { name =

    'Taro'; } this.name = name; } Human.prototype.hello = function() { console.log('My name is ' + this.name); }; class Human { constructor(name = 'Taro') { this.name = name; } hello() { console.log(`My name is ${this.name}`); } } ES5 ES6
  2. CSS.next CSS :root { --primary-color: #E86100; --base-fontsize: 1rem; } h1

    { font-size: calc(var(--base-fontsize) * 2); height: calc(100px - 2em); } body { font-size: var(--base-fontsize); } h1 { font-size: 2rem; height: calc(100px - 2em); } body { font-size: 1rem; }
  3. ES 2015 CSS.next HTTP/2 Web Components Service Worker BabelɾCSSnextɾAutoprefixerͱ ͍ͬͨΑ͏ͳ֤छπʔϧ࢖ͬͯɺ

    ඇରԠϒϥ΢βͰ΋࣮ߦͰ͖ΔΑ ͏ͳJavaScriptʹม׵ʢτϥϯε ύΠϧʣ͢Δ
  4. ES 2015 CSS.next HTTP/2 Web Components Service Worker ΫϥΠΞϯτͱͷΤϯυϙΠϯτ αʔόʔʹHTTP/2ΛରԠͤ͞Δ

    ʢΫϥΠΞϯτ͕HTTP/2ʹରԠ͠ ͍ͯΕ͹HTTP/2Ͱ௨৴͠ɺඇରԠ Ͱ͋Ε͹HTTP/1.1ʹʣ
  5. ES 2015 CSS.next HTTP/2 Web Components Service Worker ΦϑϥΠϯରԠ΋αʔόʔPushΛ ඞਢͷཁ݅ͱ͠ͳ͚Ε͹ɺͦ΋ͦ

    ΋ΦϓτΠϯͱͯ͠ಋೖ͠΍͍͢ɻ ରԠ͍ͯ͠Δϒϥ΢βʹରͯͩ͠ ͚Ͱ΋ϢʔβʔΤϯήʔδϝϯτ ΛߴΊΒΕΔ