Skip to content

Commit 250c3df

Browse files
initial commit
1 parent f532968 commit 250c3df

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

src/img/spof-tab.png

31.9 KB
Loading

src/spof.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
title: "Testing for Frontend SPOF"
3+
description: WebPageTest can run a Lighthouse test on a given URL, either by itself, or as an additional test alongside your WebPageTest results.
4+
eleventyNavigation:
5+
key: Testing for Frontend SPOF
6+
order: 2
7+
---
8+
# Testing for Frontend SPOF
9+
Frontend Single Points of Failure (SPOF) can critically impact web performance, given the continuing rise in 3rd-party widgets on pages it is becoming increasingly important as it is causing delays or complete failure in page loading if third-party scripts or resources fail. Identifying and mitigating these risks is essential for maintaining a resilient website.
10+
11+
WebPageTest simulates failure of specified domains by rerouting requests to `blackhole.webpagetest.org`, which silently drops all traffic. A blackhole server behaves as expected when testing the failure mode for third-party widgets.
12+
13+
## Steps to Test
14+
15+
### Using SPOF Tab
16+
Enter all hosts that you want to fail against your test and hit start test.
17+
18+
![](/img/spof-tab.png)
19+
20+
### Using Scripting
21+
- **Initial Test**: Test the site as you normally would, ensuring the "capture video" option is enabled. It's also helpful to label the test for easy identification.
22+
- **Script for Failure Simulation**: To capture the broken version of the site, use a script to reroute the domains to the blackhole server and then navigate to the page you want to test. Here's an example script:
23+
24+
```markup
25+
setDnsName ajax.googleapis.com blackhole.webpagetest.org
26+
setDnsName apis.google.com blackhole.webpagetest.org
27+
setDnsName www.google-analytics.com blackhole.webpagetest.org
28+
setDnsName connect.facebook.net blackhole.webpagetest.org
29+
setDnsName platform.twitter.com blackhole.webpagetest.org
30+
navigate your.url.com
31+
```
32+
Paste the script into the script box, ensure "capture video" is checked.
33+
34+
- **Comparing Results**: Go to the test history, select the tests you ran, and click compare. Logging into the site before submitting tests helps organize your history.

0 commit comments

Comments
 (0)