Block resource types
block_resourcesBlock images, fonts, stylesheets, or media to speed up page loads and reduce scraping bandwidth. Keeps stylesheets for layout-dependent automation.
Instructions
Block images, fonts, stylesheets or media to speed up page loads.
Removes most of the bytes on a media-heavy page, which makes scraping several times faster and far cheaper over a metered or proxied connection.
Blocking stylesheets breaks layout, so anything that depends on element
geometry becomes unreliable — click_at, element screenshots, and the
visible check in wait_for_selector. Text extraction is unaffected.
Applies to the current page session and stays in effect across navigations until called again with no types.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | No | Resource types to block. ["image", "font", "media"] is the usual choice for scraping — it keeps stylesheets, so layout-dependent behaviour still works. Pass an empty list or omit to unblock everything. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |