Does a static site need error monitoring?

Yes, when a visitor depends on JavaScript on the page. Init the browser SDK before the other scripts. Uncaught exceptions and unhandled rejections are stored with no extra call. A site of HTML and CSS only has no script exception to report. Open the deployed page, because a script that fails before init sends nothing.

Last updated 26 November 2026. By Paul Badarau.

Ellis, a fictional developer, publishes a town hall site from a folder of HTML. The hall hire form is a short script. The archive pages are HTML and CSS only.

  1. Add the browser SDK when a visitor depends on a script, such as the hire form or a menu that opens from a button. Call Sentry.init before those scripts. With the defaults, an uncaught exception and an unhandled rejection are stored with no further call.
  2. A script you wrote by hand is readable in the stack. Minified output from a generator still needs a source map before the frame names your file and line. Monitoring shows that original position when a map is stored for the frame.
  3. Pages of HTML and CSS only have no script exception for this SDK to see. A missing file, and a form that lands on the host's error page, are responses. You see them by opening the page.

If the SDK file fails to load, or the page throws before Sentry.init, nothing is sent. After a deploy, open the hire form in a fresh tab and send a test booking. A quiet error list cannot make that check.

The product page for this is Monitoring.

Start your 14-day free trial