---
title: "Resources"
description: "Capture the scripts, stylesheets, images, and other resources a page loads as browser spans."
url: https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/integrations/resources/
---

# Resources for React Router Framework

This integration only works inside a browser environment. It requires JavaScript SDK version 11.14.0 or later.

*Import name: `Sentry.resourcesIntegration`*

The Resources integration adds `resource.*` spans for the scripts, stylesheets, images, and other resources loaded during a pageload or navigation. The spans are added when the pageload or navigation span ends.

The [BrowserTracing](https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/integrations/browsertracing.md) integration adds this integration automatically, so you don't need to add it yourself. Configure it through BrowserTracing's `ignoreResourceSpans` option.

```javascript
Sentry.init({
  integrations: [
    Sentry.browserTracingIntegration({
      ignoreResourceSpans: ["resource.css", "resource.script"],
    }),
  ],
});
```

To set its options directly, add the integration yourself. An explicitly added Resources integration takes precedence over BrowserTracing's settings.

## [Configuration Options](https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/integrations/resources.md#configuration-options)

### [ignoreResourceSpans](https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/integrations/resources.md#ignoreResourceSpans)

| Type    | `Array<string>` |
| ------- | --------------- |
| Default | `[]`            |

Skip resource spans whose `op` matches a string in this array, for example `resource.script`, `resource.css`, `resource.img`, or `resource.other`.

---

Find other pages: [Sitemap](https://docs.sentry.io/sitemap.md) lists every page with a one-line summary, and [llms.txt](https://docs.sentry.io/llms.txt) gives an overview with guidance for agents.
