Skip to content

Commit

Permalink
πŸ‘Œ add doc
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitZugmeyer committed Nov 29, 2022
1 parent 8692ba0 commit 44e4890
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions performances/src/trackNetwork.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { HTTPRequest, Page } from 'puppeteer'

// Arbitrary maximum time to wait for a request, to make sure `waitForNetworkIdle` does not block
// for too long.
const REQUEST_TIMEOUT = 5000 // 5 seconds

export function trackNetwork(page: Page) {
Expand Down

0 comments on commit 44e4890

Please sign in to comment.