WebPagetest Forums
Difference between SPOF and Block? - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: WebPagetest (/forumdisplay.php?fid=7)
+--- Forum: General Discussion (/forumdisplay.php?fid=25)
+--- Thread: Difference between SPOF and Block? (/showthread.php?tid=14702)



Difference between SPOF and Block? - spencer_shaw - 01-19-2017 01:01 AM

Hi,

If I want to see the impact of a third party script/tag has on page load times should I use the SPOF tab or Block tab?

What is the difference between SPOF and Block?

How come when I run a test in blocking a tag, the page load times go up and not down which you would expect? Any ideas?


RE: Difference between SPOF and Block? - pmeenan - 01-24-2017 03:02 AM

Block is a fast-fail while SPOF routes the requests to a black hole to timeout.

As for why times go up, if it is in Chrome it is likely because of how the blocking is done currently. It uses an extension that runs like an adblocker and Chrome has a crazy-amount of overhead on the extension API.

There is a script command "blockDomains" that works at the DNS level instead and doesn't add the overhead but it only works on domains, not URL substrings. I'm considering adding a UI field to expose the domain-level blocking and reduce the usage of the existing block.


RE: Difference between SPOF and Block? - spencer_shaw - 01-24-2017 03:44 AM

thanks for the reply. The "blockDomains" sounds interesting. Any advice on when to use SPOF versus Block?


RE: Difference between SPOF and Block? - pmeenan - 01-24-2017 04:01 AM

I usually use block when I'm trying to evaluate the impact of a given component to performance. Like "how fast is it without the ads" or "without the a/b testing" to judge the performance impact. I use SPOF to see "what is the impact to performance if the ads provider is unavailable" or to test all of the 3rd-parties to make sure there are no hard dependencies.