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

Optimizing Contents Delivery

Avatar for Gen Gen
March 24, 2017

Optimizing Contents Delivery

Avatar for Gen

Gen

March 24, 2017
Tweet

More Decks by Gen

Other Decks in Programming

Transcript

  1. ໔੹ࣄ߲ (͍͍Θ͚λΠϜ) • FP, FRP ͷ࿩͸͠·ͤΜ • Rx ͷ࿩΋͠·ͤΜ •

    τʔΫεΫϦϓτ࿅श͍ͯ͠ͳ͍Ͱ͢ • 2018 ೥ʹ͸͋ͨΓલʹͳΔ͔΋͠Εͳ͍࿩
  2. es6 Dynamic Import // sync import React from 'react'; //

    sync import { Component } from 'react'; // async const AsyncModulePromise = import('../some_modules');
  3. import() • babel-plugin: syntax-dynamic-import • Stage 3 • Webpack 2

    • (path: string) => Promise<*> • Support dynamic module name
  4. Responsive Component • Mobile First JavaScript • Always render Mobile

    Components • Lazy load Desktop Components when and only if necessary
  5. Thx