Skip to main content
C.Unbay's user avatar
C.Unbay's user avatar
C.Unbay's user avatar
C.Unbay
MR
  • Member for 7 years, 10 months
  • Last seen this week
  • USA
Stats
2,787
reputation
379k
reached
81
answers
63
questions
Loading…
About

Just love programming!

To make puppeeter run as smooth as possible:

  const options = {
    args: [
      '--no-sandbox',
      '--disable-setuid-sandbox',
      '--disable-dev-shm-usage',
      '--disable-accelerated-2d-canvas',
      '--no-first-run',
      '--no-zygote',
      '--single-process',
      '--disable-gpu'
    ],
    headless: true
  }

  return await puppeteer.launch(options)
  const options = {
    args: [
      '--no-sandbox',
      '--disable-setuid-sandbox',
      '--disable-dev-shm-usage',
      '--disable-accelerated-2d-canvas',
      '--no-first-run',
      '--no-zygote',
      '--single-process',
      '--disable-gpu'
    ],
    headless: true
  }

  return await puppeteer.launch(options)
2
gold badges
17
silver badges
33
bronze badges
155
Score
68
Posts
47
Posts %
150
Score
39
Posts
27
Posts %
9
Score
8
Posts
6
Posts %
7
Score
19
Posts
13
Posts %
7
Score
17
Posts
12
Posts %
4
Score
16
Posts
11
Posts %