Open ghost opened 6 months ago
Hello,
on Puppeteer, you can do:
page = await browser.newPage(); await page.setRequestInterception(true); page.on('request', (request) => { if (['image', 'stylesheet', 'font', 'script'].indexOf(request.resourceType()) !== -1) { request.abort(); } else { request.continue(); } });
To prevent downloading unwanted assets, how can I do that on Astral?
I'm working on a nice API for this, but this is doable right now via the celestial bindings.
Hello,
on Puppeteer, you can do:
To prevent downloading unwanted assets, how can I do that on Astral?