prevent downloading unneeded resources

I'd like to block tracking pixels and other unneeded files in the PlayWright crawler. It seems I can use page.route for that but in the context of PlaywrightCrawler, would I just put those in requestHandler? (Won't that be too late?)
Was this page helpful?