({page,browser}=awaitgetPage(url,'load'));// wait until only the page is loaded, not all network ressources (cf. https://www.browserless.io/blog/waituntil-option-for-puppeteer-and-playwright )
// We use renderPage to generate html meta tags, so we wait only until the page is loaded, not all network ressources (cf. https://www.browserless.io/blog/waituntil-option-for-puppeteer-and-playwright )
// ("waitUntil: 'networkidle0'" fails with timeout error on appsoc server where outgoing connections are closed)
({page,browser}=awaitgetPage(url,'load'));
// We sleep for a bit to let the page load (we don't use waitForSelector function because we don't know which page is requested and which tag to wait ; https://stackoverflow.com/questions/52497252/puppeteer-wait-until-page-is-completely-loaded/61304202 )
awaitsetTimeout(2000);
// Puppeteer generated HTML (with computed og meta html tags, for LinkedIn post publication)
// When using the KEEP_ALIVE flag, we need to replace browser.close() with browser.disconnect() (https://docs.browserless.io/v1/docker/config#keeping-chrome-alive )