Remove GrowthBook A/B testing integration#18319
Conversation
Remove the GrowthBook SDK and all related code to test whether eliminating this third-party script improves page load performance. This is an experimental change that may be reverted if we decide to resume A/B testing. Changes: - Remove GrowthBook SDK initialization and analytics callback from util.ts - Remove GrowthBook window globals and cdn.growthbook.io preconnect from head.html - Remove @growthbook/growthbook dependency from theme and root package.json - Delete unused experiment files (cta-activations, terraform-compare) - Update dependabot labeling and BUILD-AND-DEPLOY.md references Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Docs Review — PR #18319: Remove GrowthBook A/B testing integrationScope: Overall AssessmentClean removal of GrowthBook. The changes are thorough and well-scoped. No remaining references to GrowthBook were found in the non-lockfile codebase. FindingsNo blocking issues found. Minor observations:
SummaryThis PR is ready to merge from a docs/content perspective. The removal is complete and leaves no broken references. Mention @claude if you'd like additional reviews or fixes. |
|
Your site preview for commit f7adf26 is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-18319-f7adf268.s3-website.us-west-2.amazonaws.com. |
The dependency was removed from package.json but yarn.lock wasn't regenerated, leaving an orphaned entry. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CamSoper
left a comment
There was a problem hiding this comment.
LGTM! Clean removal of GrowthBook — nice win for page load performance. 👍
I fixed the stale @growthbook/growthbook entry in the root yarn.lock (it wasn't regenerated after removing the dependency from package.json).
One note: the PR description mentions the .github/workflows/label-dependabot.yml change "could not be pushed" — but it is included in this PR. Might want to update the description.
Resolve package dependency conflicts by keeping master's updated Algolia versions while preserving the GrowthBook removal from this PR. Regenerated lock files accordingly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Your site preview for commit cf19927 is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-18319-cf199272.s3-website.us-west-2.amazonaws.com. |
The previous conflict resolution ran `yarn install` in the theme directory, which regenerated lock file entries using registry.npmjs.org URLs without integrity hashes. Restore master's lock files (which use registry.yarnpkg.com with proper hashes) and manually strip the GrowthBook entries. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
@claude one final review pls |
|
Claude finished @alexleventer's task in 1m 24s —— View job Final Review — PR #18319: Remove GrowthBook A/B testing integration
Assessment: Ready to merge ✓The removal is complete and thorough. No GrowthBook references remain anywhere in the non-lockfile codebase. Verified clean:
One minor note (not blocking):
PR description note: CamSoper already flagged that the LGTM overall. This is a clean, well-scoped removal with no broken references. |
|
Your site preview for commit a18b00a is ready! 🎉 http://www-testing-pulumi-docs-origin-pr-18319-a18b00af.s3-website.us-west-2.amazonaws.com. |
The GrowthBook removal in #18319 left an orphaned dom-mutator entry in theme/yarn.lock, causing a local diff on every yarn install. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore(theme): prune orphaned dom-mutator from yarn.lock The GrowthBook removal in #18319 left an orphaned dom-mutator entry in theme/yarn.lock, causing a local diff on every yarn install. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * chore: gitignore theme/package-lock.json The repo uses Yarn exclusively — no workflow, Makefile target, or script runs npm install in theme/. The root package-lock.json was already gitignored for this reason, but theme/ was missed, so Dependabot has been updating a lockfile nothing consumes. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Remove ticks from Lighthouse comments to enable SHA linking --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Summary
This is an experimental change to test pagespeed improvement. We may revert this if we decide to resume A/B testing.
Removes the GrowthBook SDK and all related code to measure the impact on page load performance. GrowthBook loads a third-party script from
cdn.growthbook.ioon every page, adds a preconnect, and initializes with streaming — all of which contribute to page weight and render-blocking time.util.tswindow.growthbook_*globals andcdn.growthbook.iopreconnect fromhead.html@growthbook/growthbookdependency fromtheme/package.jsonand rootpackage.jsoncta-activations-direct-vs-docs.ts,terraform-compare.ts)BUILD-AND-DEPLOY.mdand dependabot labeling referencesTest plan
make build)make serve)cdn.growthbook.io🤖 Generated with Claude Code