# Block Resources > Source: https://scrape.do/documentation/headless-browser/block-resources/ Optimize performance by blocking CSS and images By default, this feature is enabled so that results are loaded faster and returned to you more quickly when you navigate to a website through the headless browser. CSS files, images, and fonts are blocked to improve performance and reduce bandwidth usage. If you want to turn this feature off, simply pass the `blockResources=false` parameter. > [!NOTE] > This feature may affect success rates for some target websites. Therefore, setting **false** on problematic web pages may increase your success rate if the site requires images or CSS to load properly. **cURL (API mode)** ```bash curl --location --request GET 'https://api.scrape.do/?url=https://httpbin.co/anything&render=True&token=YOUR_TOKEN&blockResources=false' ``` **Python (API mode)** ```python import requests import urllib.parse token = "YOUR_TOKEN" targetUrl = urllib.parse.quote("https://httpbin.co/anything") render = "true" blockResources = "false" url = "http://api.scrape.do/?token={}&url={}&render={}&blockResources={}".format(token, targetUrl,render,blockResources) response = requests.request("GET", url) print(response.text) ``` **Node.js (API mode)** ```javascript const axios = require('axios'); const token = "YOUR_TOKEN"; const targetUrl = encodeURIComponent("https://httpbin.co/anything") const render = "true"; const blockResources = "false"; const config = { 'method': 'GET', 'url': `https://api.scrape.do/?token=${token}&url=${targetUrl}&render=${render}&blockResources=${blockResources}`, 'headers': {} }; axios(config) .then(function (response) { console.log(response.data); }) .catch(function (error) { console.log(error); }); ``` **cURL (Proxy mode)** ```bash curl -k -x "http://YOUR_TOKEN:render=true&blockResources=false@proxy.scrape.do:8080" 'https://httpbin.co/anything' -v ``` **Python (Proxy mode)** ```python import requests import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) url = "https://httpbin.co/anything" token = "YOUR_TOKEN" proxyModeUrl = "http://{}:render=true&blockResources=false@proxy.scrape.do:8080".format(token) proxies = { "http": proxyModeUrl, "https": proxyModeUrl, } response = requests.request("GET", url, proxies=proxies, verify=False) print(response.text) ``` **Node.js (Proxy mode)** ```javascript const axios = require('axios'); const token = "YOUR_TOKEN"; const targetUrl = "https://httpbin.co/anything"; axios({ method:"GET", url:targetUrl, proxy: { protocol:'http', host: 'proxy.scrape.do', port: 8080, auth: { username: token, password: 'render=true&blockResources=false' } }, }) .then(response => { console.log(response.data); }) .catch(error => { console.error(error.message); }); ``` *(Go, Ruby, Java, C#, PHP examples are also available on the HTML version.)*