Website Speed & Performance Optimization
Review delivery configuration and observed website performance
Review delivery configuration and observed website performance. Use the API workflow below to collect dated findings, review their scope, and decide which follow-up checks your team needs.
Implementation example by the EdgeDNS team · Updated
The Challenge
Response timing, browser loading, cache policy, and transfer size describe different parts of performance.
The Solution
Inspect compression, cache policy, protocol observations, resource hints, page weight, response time, and performance scoring. Review measurement provenance and the stated limits of each diagnostic. Synthetic samples and estimated load times are not real-user distributions; advertised protocol support is not proof of negotiated use.
Endpoints Used
Combine these EdgeDNS endpoints to build this solution.
/v1/domain/compressionAPI referenceCompression Check: Analyze gzip/brotli/zstd compression support
/v1/domain/cacheAPI referenceCache Headers: Analyze caching configuration
/v1/domain/http-versionAPI referenceHTTP Version: Check HTTP/2 and HTTP/3 support
/v1/domain/resource-hintsAPI referenceResource Hints: Find preconnect, prefetch, and preload hints
/v1/domain/redirectAPI referenceRedirect Chain: Trace HTTP redirect chain
/v1/domain/response-timeAPI referenceResponse Time: Measure server response latency
/v1/domain/page-weightAPI referencePage Weight: Analyze page size and resource breakdown
/v1/score/performanceAPI referencePerformance Score: Composite speed score from 6 optimization factors
/v1/domain/search-readinessAPI referenceSearch Readiness: Evaluate search engine optimization readiness
What this workflow helps you do
Inspect delivery configuration
Review compression, caching, and resource-hint findings.
Separate timing evidence
Use source and phase coverage to interpret response-time measurements.
Validate changes with users
Compare diagnostic results with field data from your own real-user monitoring.
Code Example
Review delivery configuration and observed website performance
const headers = { Authorization: 'Bearer YOUR_API_KEY' };
const checks = [
{
"path": "/v1/domain/compression",
"params": {
"domain": "https://example.com"
}
},
{
"path": "/v1/domain/cache",
"params": {
"domain": "https://example.com"
}
},
{
"path": "/v1/domain/http-version",
"params": {
"domain": "https://google.com"
}
}
];
// Run sequentially to keep concurrency bounded. API tier restrictions apply.
for (const { path, params } of checks) {
const url = new URL(path, 'https://api.edgedns.dev');
url.search = new URLSearchParams(params).toString();
const response = await fetch(url, { headers });
const result = await response.json();
if (!response.ok) {
throw new Error(`${path}: ${response.status} ${result.error?.message ?? 'Request failed'}`);
}
// Keep the response metadata and any partial/unknown findings for review.
console.log(path, result);
}Learn More
Explore industry standards and best practices related to this use case.
web.dev Performance
Google's comprehensive guidance on web performance optimization techniques and metrics
Chrome UX Report (CrUX) API
Real-world Core Web Vitals field data sourced from opted-in Chrome users — the same dataset PageSpeed Insights and Search Console use
HTTP Archive Web Almanac
Annual state of the web report covering performance, compression, caching, and protocol adoption trends
RFC 9460 - SVCB and HTTPS Resource Records
DNS records that authoritatively advertise ALPN tokens (h2, h3) so HTTP/2 and HTTP/3 support can be confirmed before the first request
RFC 9114 - HTTP/3
IETF specification for HTTP/3 using QUIC transport for reduced latency connections
Ready to build Website Speed & Performance Optimization?
Get started with 200 free API requests per month. No credit card required.
Other Use Cases
Website Migration SEO Validation
Compare crawl and indexing signals before and after a migration
SEO Manager / Content StrategistTechnical SEO Audit & Optimization
Prioritize technical SEO findings on representative public pages
MSP Owner / IT Consultant / vCISOClient Security Assessment for MSPs
Create a repeatable public-domain assessment for MSP clients