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

続 Nuxt.js 移行プロジェクトの話

続 Nuxt.js 移行プロジェクトの話

note engineer meetup #2 での登壇資料です。
note の Vue Fes Japan 後の取り組み、Nuxt.js の update to v2.4.3 の話や、Code Splitting について話をしました

Daichi Ishikawa

February 21, 2019
Tweet

More Decks by Daichi Ishikawa

Other Decks in Technology

Transcript

  1. Daichi Ishikawa / @nicedchy 2018/11 - piece of cake, inc.

    note ͷ ϑϩϯτΤϯυϦϓϨΠεΛ୲౰ Vue.js Japan User Group Staff Who am I
  2. ৽͍͠ػೳͰ note ʹ΋Ըܙ͕✨ ɾTypeScript Support ✨ ɹ=> TypeScript ؀ڥ΁ WIP

    ɾSmart Prefetch ✨ ɹ=> notedemo ͷ ɹɹ ϖʔδભҠͰମݧͰ͖·͢ Nuxt.js update to v2.4.3
  3. How to Dynamic Imports on Nuxt.js Code Splitting & Lazy

    Load Components Nuxt.js ެࣜ example
 https://github.com/nuxt/nuxt.js/tree/dev/examples/dynamic-components
  4. After Dynamic Imports app.js: 665KB → 215KB vendors.app.js ͱ modals.js

    ͸ϨϯμϦϯάʹӨڹͦ͠͏ Code Splitting & Lazy Load Components modals.js ͸ॳճͷϨϯμϦϯάʹؔ܎͕ͳ͍ͷͰඇಉظʹ
  5. How to Lazy Loading Components on Nuxt.js Code Splitting &

    Lazy Load Components Vue.js ެࣜ Docs
 https://jp.vuejs.org/v2/guide/components-dynamic-async.html#ඇಉظίϯ ϙʔωϯτ
  6. Page Load Times Code Splitting & Lazy Load Components firstByte:

    1.87s → 1.12s loadTime: 8.28s → 6.89s fullyLoaded: 8.56s → 7.17s
  7. Rendering Times Code Splitting & Lazy Load Components firstPaint: 3.65s

    → 2.9s speedIndex: 6.6s→ 5.43s visualComplete: 8.35s→6.92s