1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["12789"],{26665(e,t,r){r.r(t),r.d(t,{metadata:()=>i,default:()=>c,frontMatter:()=>s,contentTitle:()=>o,toc:()=>d,assets:()=>l});var i=JSON.parse('{"id":"api/puppeteer.page.waitfornetworkidle","title":"Page.waitForNetworkIdle() method","description":"Waits for the network to be idle.","source":"@site/.generated-docs/next/api/puppeteer.page.waitfornetworkidle.md","sourceDirName":"api","slug":"/api/puppeteer.page.waitfornetworkidle","permalink":"/next/api/puppeteer.page.waitfornetworkidle","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"sidebar_label":"Page.waitForNetworkIdle"},"sidebar":"api","previous":{"title":"Page.waitForNavigation","permalink":"/next/api/puppeteer.page.waitfornavigation"},"next":{"title":"Page.waitForRequest","permalink":"/next/api/puppeteer.page.waitforrequest"}}'),n=r(74848),a=r(28453);let s={sidebar_label:"Page.waitForNetworkIdle"},o="Page.waitForNetworkIdle() method",l={},d=[{value:"Signature",id:"signature",level:3},{value:"Parameters",id:"parameters",level:2},{value:"Remarks",id:"remarks",level:2}];function p(e){let t={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.header,{children:(0,n.jsx)(t.h1,{id:"pagewaitfornetworkidle-method",children:"Page.waitForNetworkIdle() method"})}),"\n",(0,n.jsx)(t.p,{children:"Waits for the network to be idle."}),"\n",(0,n.jsx)(t.h3,{id:"signature",children:"Signature"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-typescript",children:"class Page {\n waitForNetworkIdle(options?: WaitForNetworkIdleOptions): Promise<void>;\n}\n"})}),"\n",(0,n.jsx)(t.h2,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)("table",{children:[(0,n.jsx)("thead",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("th",{children:(0,n.jsx)(t.p,{children:"Parameter"})}),(0,n.jsx)("th",{children:(0,n.jsx)(t.p,{children:"Type"})}),(0,n.jsx)("th",{children:(0,n.jsx)(t.p,{children:"Description"})})]})}),(0,n.jsx)("tbody",{children:(0,n.jsxs)("tr",{children:[(0,n.jsx)("td",{children:(0,n.jsx)(t.p,{children:"options"})}),(0,n.jsx)("td",{children:(0,n.jsx)(t.p,{children:(0,n.jsx)(t.a,{href:"/next/api/puppeteer.waitfornetworkidleoptions",children:"WaitForNetworkIdleOptions"})})}),(0,n.jsx)("td",{children:(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.em,{children:"(Optional)"})," Options to configure waiting behavior."]})})]})})]}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.strong,{children:"Returns:"})}),"\n",(0,n.jsx)(t.p,{children:"Promise<void>"}),"\n",(0,n.jsx)(t.p,{children:"A promise which resolves once the network is idle."}),"\n",(0,n.jsx)(t.h2,{id:"remarks",children:"Remarks"}),"\n",(0,n.jsxs)(t.p,{children:["The function will always wait at least the set ",(0,n.jsx)(t.a,{href:"/next/api/puppeteer.waitfornetworkidleoptions#idletime",children:"IdleTime"}),"."]})]})}function c(e={}){let{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(p,{...e})}):p(e)}},28453(e,t,r){r.d(t,{R:()=>s,x:()=>o});var i=r(96540);let n={},a=i.createContext(n);function s(e){let t=i.useContext(a);return i.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:s(e.components),i.createElement(a.Provider,{value:t},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.