Skip to main content
SaaS|Frontend Developer / Performance Engineer

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.

GET
/v1/domain/compressionAPI reference

Compression Check: Analyze gzip/brotli/zstd compression support

GET
/v1/domain/cacheAPI reference

Cache Headers: Analyze caching configuration

GET
/v1/domain/http-versionAPI reference

HTTP Version: Check HTTP/2 and HTTP/3 support

GET
/v1/domain/resource-hintsAPI reference

Resource Hints: Find preconnect, prefetch, and preload hints

GET
/v1/domain/redirectAPI reference

Redirect Chain: Trace HTTP redirect chain

GET
/v1/domain/response-timeAPI reference

Response Time: Measure server response latency

GET
/v1/domain/page-weightAPI reference

Page Weight: Analyze page size and resource breakdown

GET
/v1/score/performanceAPI reference

Performance Score: Composite speed score from 6 optimization factors

GET
/v1/domain/search-readinessAPI reference

Search 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

javascript
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.

Ready to build Website Speed & Performance Optimization?

Get started with 200 free API requests per month. No credit card required.

Other Use Cases

Website Speed & Performance Optimization | EdgeDNS