Skip to content

Commit 582880b

Browse files
authored
Add note about blocking Netlify deploy SPA
1 parent 6c481d9 commit 582880b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ jobs:
145145
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
146146
```
147147

148+
_If you are testing against a Netlify deployment preview, it's important to note that the new collaborative features for their previews inject a full single-page application into your page, messing with any performance thresholds you might be trying to enforce. Add the following to your wptOptions JSON to make sure none of the extra code makes it into your test results_
149+
150+
```
151+
"block": "netlify-cdp-loader.netlify.app"
152+
```
153+
148154
### Customizing your WebPageTest tests
149155
There are a _lot_ of [options available in WebPageTest](https://github.com/marcelduran/webpagetest-api#test-works-for-runtest-method-only) to customize your test results, record custom metrics, or do advanced scripting and multi-page flows.
150156

0 commit comments

Comments
 (0)