Skip to main content

performance

POST /performance

Parameters

  • url: string - Target URL to capture.
  • htmlContent: string - HTML to render directly and capture. If this field is present, any value of url will be ignored.

Response

This method returns an object with two properties:

  • navigation contains all the information provided by the browser's Navigation Timing entries ― performance.getEntriesByType("navigation"))
  • resource contains all the information provided by the browser's Resource Timing entries ― performance.getEntriesByType("resource"))

For more information, see the Navigation and Resource Timing guide.

Note ― when passing htmlContent to evaluate, because of the way that puppeteer sets the content, it is possible that neither of these performance entries will have any data. Therefore it is recommended to use this feature with a url.