Merged
Conversation
Wrap Fathom.load() and Fathom.trackPageview() in try/catch so ad blockers or privacy tools can no longer crash the site. Add a React ErrorBoundary around page content and a custom _error page as additional safety nets for any unhandled client-side exceptions.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Member
Author
|
I think I'm gonna go ahead & merge this and in case there's any issues revert. |
Arvin21M
reviewed
Feb 21, 2026
Contributor
Arvin21M
left a comment
There was a problem hiding this comment.
- No problems found by adding
try/catch. - This merge should resolve the issue of site crashing if ad blockers exist.
- Dont see a need to revert to fix anything.
- 🙏
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prevent Fathom from crashing the entire site when ad blockers or privacy tools interfere with the script.
Fathom.load()andFathom.trackPageview()are now wrapped in try/catch so failures log a warning instead of producing an unhandled exception. A React error boundary and a custom error page provide additional safety nets.Fathom.load()andFathom.trackPageview()in try/catch incomponents/Fathom.tsxcomponents/ErrorBoundary.tsxand wrap page content in_app.tsxpages/_error.tsxas a last-resort fallback for uncaught errors