技術記事以外

技術記事以外の振り返りやその日学んだことのちょっとしたメモなどを置く予定です

今日の学習メモ

パフォーマンス修正の事例

  • リストコンポーネントはランタイムのパフォーマンスのボトルネックになりがち。React16からはパフォーマンス計測には公式モジュールを利用できるらしい。
  • Performance monitor is useful to detect any setTimeout() or setInterval() which could be run in vain without noticing.
  • Reactでありがちなのが、関数をpropsで渡すときに毎度新しく生成してしまうという問題
  • 描画をハイライトする拡張などを使って、マウスオーバーで無意味な再描画等が起きていないか確認しよう
  • ライブラリのパフォーマンス改善をする場合はJSのprofileを個別で取るとわかりやすい。

Solving SEO with Headless Chrome

  • Headless Chrome is Chrome for environment which UI is not available. It allows you to many things like UI test or PDF print.
  • Rendertron was primarily for GAE
  • It returns rendered result for the bot when PWA fully loaded the page