Recording CSS Stylesheets

Record the page's linked CSS files inside the session, so replays look right even when the stylesheets can't be loaded later.

Why you need it

Replays rebuild the page from the recording. Without this option, linked stylesheets (<link rel="stylesheet">) are loaded again from their original address when you watch the replay. If that address isn't reachable from the UXCam dashboard (an internal network, localhost, a kiosk, an expired or access-protected URL), the replay shows the page without its styling.

Inline CSS (<style> tags and CSS added by script) is always recorded, with or without this option.

Setup

Set recordStylesheets to true in the options object at the end of the SDK snippet:

})('Your_App_Key', { recordStylesheets: true });

Limits

  • Up to 4 MB per CSS file. A larger file isn't saved in the recording.
  • Up to 8 MB in total per page load. Once the saved CSS files on a page add up to 8 MB, later files aren't saved.
  • No limit on inline CSS (<style> tags or CSS added by script).

If your site needs higher limits, contact support: they can be raised for your app.

What it doesn't cover

Images, fonts and videos are still loaded from their original addresses during replay. If those files only exist on an internal network or on the device, serve them from an address the dashboard can reach for replays to show them.


Did this page help you?