Matsumoto Toshi
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Testing And Monitoring [元の記事](https://www.smashingmagazine.com/2021/01/front-end-performance-2021-free-pdf-checklist/#testing-and-monitoring) ## 71 Have you optimized your auditing workflow? 監査のワークフローを最適化しましたか? 手元に計測環境を用意しておくと、パフォーマンスの検証時間を短縮できるかもしれません。 WebPageTestのサーバにパフォーマンスの計測結果を反映させる前に、[Alfred Workflow for WebPageTest](https://github.com/tkadlec/webpagetest-alfred-workflow)を使用すると手軽に計測することが可能。 ### [Webpagetest とは](https://www.webpagetest.org/) そのとおりウェブサイトのパフォーマンスを計測できるツールです。 Google を中心にオープンソースで開発されているもので、下記の機能を持っています。([アカマイのブログ](https://blogs.akamai.com/jp/2016/11/webpagetest.html)が詳しく書かれてました) - 測定対象の Web サイトの URL を指定して測定できる。 - 各ファイルのダウンロード時間、JS の実行時間を計測できる - ブラウザの表示状態のスクリーンキャプチャを撮ってくれる - Lighthouse も組み込まれている - Chrome devtoolsよりもネットワークやCPUのスロットリングが実際の挙動に近い - webpagetest.orgでは選択されたデバイスを実際に利用してリモートデバッグしているので、より実態に則した計測結果が得られる Webpagetest はすぐ使えるように無料のパブリックサーバが提供されていますが、プライベートサーバを立てることも可能です。 [試しにSUUMOを計測してみた](https://www.webpagetest.org/result/210219_DiXQ_f67dda6058dd4731d1dd78fd9167f00b/) ### Alfred Workflow for WebPageTest Alfredからパフォーマンスの計測ができるやつっぽい ![](https://i.imgur.com/ur0OEDc.png) [GoogleスプレッドシートからWebPageTestを起動し、アクセシビリティ、パフォーマンス、SEOスコアを計測](https://github.com/uknmr/gas-webpagetest)したり、Lighthouse CIでチェックすることが可能。 ![CI](https://cdn-images-1.medium.com/max/1600/1*Y-1sdlIzFBRfEQPprzLnbA.png) AutoWebPerfは、複複数のソースからパフォーマンスのデータを自動的に収集できるツール - Chrome UXレポート - PageSpeed Insights - WebPageTest スプレッドシートに書き込んだり、[DataStudio で可視化したりを自動化できる](https://docs.google.com/spreadsheets/d/1c3k9eEVg12Atoa72tglVVBg--o0CEMkOF3JCaLlxzeo/edit#gid=0) フィールドデータやラボデータが自動で収集して一覧できるの良さそう.... ## 73 Have you tested the performance of your 404 pages? 404ページのパフォーマンスをテストしましたか? 404ページのキャッシング戦略を検討し、最適化するようにしてください。 (404エラーはパフォーマンスを低下させるだけでなく、トラフィックのコストにもなるため) 404レスポンスで重要なのは、実際にブラウザに送信されているレスポンスのボディサイズ。 ブラウザが HTML レスポンスを期待しているときだけ HTML を提供し、それ以外のレスポンスに対しては小さなエラーペイロードを返すこと。 オリジンの前にCDNを配置すると、404ページのレスポンスをCDN上でキャッシュ可能です。しかし、オリジンサーバがすべての404リクエストに応答するようになっていると、DoS攻撃に使われる恐れがある。 404ページを定期的に計測して、時間の経過とともにスコアの劣化をモニタリングすることが勧められていました ## 74 Have you tested the performance of your GDPR consent prompts? GDPRの同意プロンプトのパフォーマンスをテストしましたか? EU一般データ保護規則(GDPR)や カリフォルニア州 消費者プライバシー法(CCPA)の条件下では、EUの顧客がトラッキングをオプトインまたはオプトアウトするためのオプションを提供するための、サードパーティライブラリを使用することが一般的になってきました。 他のサードパーティ製スクリプトと同様に、そのパフォーマンスは、パフォーマンスの取り組み全体にかなり壊滅的な影響を与える可能性があります。 クッキーの同意のプロンプトは CLS に影響を時々影響を与えることがあるので、 Osano や [cookie-consent-box](https://github.com/adriandmitroca/cookie-consent-box) の使用を検討してください。 ## 75 Do you keep a performance diagnostics CSS? パフォーマンス診断のCSSを保持していますか? パフォーマンスの悪いコードがデプロイされないようにするためにあらゆる種類のチェックを含めることができますが、中でも、[Performance Diagnostics CSS](https://gist.github.com/tkadlec/683b26344cde774170b94c0fcf0088b4)を使うと、遅延ロードされた画像、サイズの合わない画像、レガシーフォーマットの画像、および同期スクリプトをハイライト可能 ``` /* Performance Diagnostics CSS */ /* via Harry Roberts. https://twitter.com/csswizardry/status/1346477682544951296 */ img[loading=lazy] { outline: 10px solid red; } ``` ![](https://i.imgur.com/mFG3kSW.png) ## 76 Have you tested the impact on accessibility? アクセシビリティへの影響を検証しましたか? ブラウザがページの読み込みを開始すると、DOM が構築され、スクリーン・リーダーのような支援技術が実行されている場合は、アクセシビリティ・ツリーも作成されます。スクリーン・リーダーはその後、アクセシビリティ・ツリーを照会して情報を取得し、ユーザーが利用できるようにしなければなりません。そして、それには時間がかかることもあります。 Time to Interactive (対話までの時間) は、通常、ユーザーがリンクやボタンをクリックしたりタップしたりしてページと対話できるようになるまでの時間を示す指標を意味します。しかし、スクリーンリーダーの場合は「インタラクティブまでの時間が速い」とは、「スクリーンリーダーが指定されたページのナビゲーションをアナウンスし、スクリーンリーダーのユーザーが実際にキーボードを叩いて対話できるようになるまで」の時間の経過を意味しています。 大きなページや JavaScript での DOM 操作は、スクリーンリーダーのアナウンスの遅延を引き起こします。 ## 77 Is continuous monitoring set up? 計測的な監視が設定されていますか? WebPagetest のプライベートインスタンスを持つことは、回数制限なく素早く計測可能なので便利です。 Sitespeed、Calibre、SpeedCurve のようなアラート機能を備えた継続的なモニタリングツールを使用すると、パフォーマンスのより詳細な画像を把握できるようになります(詳細な画像ってどういうこと?)。ビジネスに特化したメトリクスの測定と監視を行いましょう。また、経年変化を監視するために、劣化した際にはアラートを追加することも検討してください。 パフォーマンスの経時変化を監視するために、リアルユーザーモニタリングの使用を検討してください。 負荷テストツールには、 [k6](https://github.com/loadimpact/k6#readme) を使用することができます。 また、[SpeedTracker](https://speedtracker.org/)、[Lighthouse](https://github.com/GoogleChrome/lighthouse)、[Calibre](https://calibreapp.com/)も検討してください。

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully