mazey
    Preparing search index...

    Function getFID

    • Gets the first input delay (FID) of a web page using the Performance API. The FID is the time it takes for the first user input to be processed by the browser.

      Usage:

      import { getFID } from "mazey";

      getFID().then(
      res => {
      console.log(`FID: ${res}`);
      }
      );

      Output:

      FID: 123
      

      Returns Promise<number>

      A promise that resolves with the FID in milliseconds, or 0 if the "first-input" entry type is not supported.