Now that i have puppeteer working, it is extremely slow

const browser = await puppeteer.launch({
      args: ['--no-sandbox']
    const page2 = await browser.newPage();
    //set cookies
    let time = new Date().getTime()
    await page2.setCookie({ name: ".ASPXAUTH", value: request.cookies[".ASPXAUTH"], domain: "", path: "/", expires: -1, size: request.cookies[".ASPXAUTH"].length + 9, httpOnly: true, secure: false, session: true, sameSite: "Lax" });
    await page2.setCookie({ name: "ASP.NET_SessionId", value: request.cookies["ASP.NET_SessionId"], domain: "", path: "/", expires: -1, size: request.cookies["ASP.NET_SessionId"].length + 17, httpOnly: true, secure: false, session: true, sameSite: "Lax" });

    console.log(new Date().getTime() - time)
    await page2.goto('');
    await"#ctl00_PageData_txtStartDate", {clickCount: 3})
    await page2.type('#ctl00_PageData_txtStartDate', date);
    await page2.waitForNavigation();
    let html = await page2.content()

So i implemented a couple lines to see how long it takes to set cookies, it takes anywhere from 8-16 seconds JUST to set the cookies. and then the actual actions taken on the site take around 10. that uses up the 30 seconds till it shuts down really really fast.

any way I can speed this up?

(Yes i know i call setcookie twice) i should probably change it

unrelated: wasn’t Glitch opposed to users running headless browsers? vague link: Unsuspended project has been suspended again?

oops better link Project Glitch suspended for "No miners allowed"

They have an example project with garret in it so I think they still allow it