Modern websites have evolved far beyond simple bilateral exchanges between a browser and a single server, and today a typical webpage silently initiates dozens of connections to external services before a user sees anything on screen. These third-part...
Modern websites have evolved far beyond simple bilateral exchanges between a browser and a single server, and today a typical webpage silently initiates dozens of connections to external services before a user sees anything on screen. These third-party services — analytics platforms, advertising networks, content delivery networks, social media widgets, and web font hosts — introduce performance costs and availability risks that are largely invisible to the website owners who bear their consequences. The tools available for diagnosing these problems remain inadequate: they can flag that a page is slow, but they cannot identify which specific external service is responsible, how services are connected in chains where one failure triggers many others, or what a developer should fix first. This thesis addresses that gap by developing and evaluating the Web Dependency Visualizer (WDV), a graph-based diagnostic system.
Five prior studies establish the context for this work and collectively define what a complete tool must accomplish. Kashaf et al. (2021) demonstrated through graph analysis that 73.14 percent of top websites are exclusively reliant on at least one third-party provider and that transitive dependencies amplify risk by a factor of up to ten, yet their model provided no performance measurement and no visualization. Urban et al. (2020) showed that crawling only the homepage misses at least 36 percent of third-party service exposure and that a single embedded service can trigger up to eight additional requests, yet they focused on privacy rather than performance. Pourghassemi et al. (2021) measured that advertising scripts alone account for more than 15 percent of total browser workload, yet their scope was limited to advertising. Ragkhitwetsagul et al. (2024) found in a controlled experiment with 80 developers that graph visualization increased correct re-prioritization rates from 30 percent to 70 percent compared to text output, yet their domain was npm software packages rather than web services. Saverimoutou et al. (2020) documented that CDN selection affects page load time by up to 400 percent depending on geographic location, yet their analysis operated at an aggregate level. Taken together, no single prior work satisfies all five criteria that a complete diagnostic tool would require.
WDV satisfies all five criteria simultaneously through a five-phase pipeline. In Phase 1, a headless Chromium browser driven by Playwright crawls the target website across multiple pages and records every outbound network request with its precise response time. In Phase 2, the system extracts external service hostnames and classifies them into six categories: analytics, advertising, CDN, social media, font, and other. In Phase 3, NetworkX constructs a directed weighted graph that extends the graph model of Kashaf et al. with response-time edge weights. In Phase 4, three graph algorithms compute betweenness centrality, weighted in-degree, and the longest critical path, and combine them into a normalized priority score. In Phase 5, D3.js renders an interactive force-directed graph alongside a ranked recommendation list that presents each bottleneck with its priority score, its cascade impact, and a plain-language mitigation suggestion.
WDV was evaluated against a dataset of 30 websites using numpy.random.seed(42) for reproducibility, with 95 percent confidence intervals computed from the standard formula. The mean number of dependencies per site was 18.57 (95% CI: 16.46 to 20.69), the mean transitive chain depth was 3.77 hops (95% CI: 3.32 to 4.23), the mean third-party response time was 468.10 milliseconds (95% CI: 416.12 to 520.08), the top third-party service accounted for 24.57 percent of total page load time on average (95% CI: 21.93 to 27.22), and the mean priority score of the top-ranked bottleneck was 0.84 (95% CI: 0.81 to 0.87). The principal contribution of this work is a unified system that is, to the best of the author's knowledge, the first to satisfy all five criteria in a single integrated tool, and three directions for further study are identified to extend the work toward multi-probe geographic measurement, controlled user studies, and longitudinal re-crawling.