$30 off During Our Annual Pro Sale. View Details »

Tech Talk Performance 2021 of Merpay Frontend

August 04, 2021

Tech Talk Performance 2021 of Merpay Frontend

Tech talk doc of our actions on frontend performance


August 04, 2021


  1. 1 2021/07/08 Tech Talk Performance 2021

  2. 2 Frontend Engineer, Merpay
 - Joined to Merpay on

    March 2020
 - Like Vue, Nuxt, (Svelte? Learning now)
 - A Capoeirista.
 Toshick of the world

  3. 3 Performance and Web Vitals メルペイFrontendがどのようにPerformanceに取り組もうとしているか 現状のPerformanceをどのように把握しているのかを発表します Merpay Frontend is

    checking our Performance based on Web Vitals Scores
  4. 4 Performance and Web Vitals Jakob Nielsen Says I Say

    Do not let your customers go for reasons other than the content 遅延が 10秒までになると、ユーザーがコンピューターに振り回されている気持ちになり、ストレ スを感じ始める。 10秒以上遅くなると、サイトからの離脱率が高くなる。 コンテンツ以外の要因で離脱されることを防ぐためにもパフォーマンスは重要です。 Why
  5. 5 Performance and Web Vitals We need to provide information

    the customer wants without any annoying experience. How Can we prove that?
  6. 6 Performance and Web Vitals https://web.dev/vitals/ Web Vitals is an

    initiative by Google to provide unified guidance for quality signals that are essential to delivering a great user experience on the web. Yes, Web Vitals LCP FID CLS
  7. 7 We have decided to check these 4 metrics

  8. 8 We have decided to check these 4 metrics LCP

    - Largest Contentful Paint Load the main content Fast! CLS - Cumulative Layout Shift Stop layout shifts! TBT - Total Blocking Time Make non-interactive time Short! TTI - Time to Interactive Become respondable to user input quickly!
  9. 9 Why we do not target FID? Tools like Lighthouse

    that load pages in a simulated environment without a user cannot measure FID (there is no user input). We can improve FID by improving TBT. (ref: https://web.dev/fid/#how-to-improve-fid)
  10. 10 Visualizing our Performance by Looker We make graphs by

    script corresponding to each url that we want to check. LCP TBT CLS TTI
  11. 11 Visualizing our Performance by Looker Store data nightly by

    lighthouse on CI. https://github.com/GoogleChrome/lighthouse-ci Do Lighthouse Store Data to BigQuery Make Graph by Looker At 25:00 export result data data format is for our Looker graph visualize the performance
  12. 12 Visualizing our Performance by Looker We create the Lighthouse

    data format for Looker. (by cherry picking) { "id": "first-contentful-paint", "title": "First Contentful Paint", "description": "....", "score": 1, "scoreDisplayMode": "numeric", "numericValue": 1262.196, "numericUnit": "millisecond", "displayValue": "1.3 s" }, { "id": "total-blocking-time", ... }, ... ↓ significant params for graph score 100% score (0-1) numericValue real value data from lighthouse
  13. 13 Visualizing our Performance by Looker The blue bar represents

    100% score which means how healthy the vitals are. The red line represents the absolute score of each metrics calculated by lighthouse
  14. 14 Visualizing our Performance by Looker The horizontal lines are

    standard scores from web vital team. We aim for all 4 metrics to reach the green line in absolute score.
  15. 15 Compare two graphs We can not say the trial

    improvement worked or not from just 1 or 2 times results. The result is swaying. My Improvement worked! TBT time has reduced! ?
  16. 16 Compare two graphs We compare the result of a

    week. In Merpay, We can create multiple app versions in Test environment. Original Trial
  17. 17 Next Actions Gather Best Practices and Share Watch PayLoad

    Size To Prevent Performance Down Analyze Customer behavior by Performance aspect Check User Input Performance like FID 02 03 04 01
  18. 18 We need more people who is interested in Perf

    Improvement Thank you! Welcome