Resource Hints (Preconnect and Prefetch)
Resource hints are HTML directives such as dns-prefetch, preconnect, and prefetch that tell browsers to resolve, connect, or fetch resources before they are strictly required. For web apps calling multiple API hosts, preconnect can hide DNS and TLS handshake latency behind earlier page work.
Technical Architecture & Deep-Dive
When a single page load triggers calls to an edge gateway, analytics, and a CDN asset host, each new origin pays setup cost on the critical path. Preconnect opens TCP and TLS early so the first fetch starts closer to sending the request line.
Hints must be used carefully: over-prefetching wastes bandwidth and connection limits on mobile. Prefer one preconnect to your primary BFF or gateway, and rely on edge aggregation to reduce the number of distinct API origins a page needs. Native apps manage connection pools explicitly instead of HTML hints.
Key Architectural Benefits
Implement Resource Hints (Preconnect and Prefetch) at the Edge
Deploy lightweight API aggregation, edge caching, and secret injection in minutes without Docker containers or complex servers.
Frequently Asked Questions
Q:Do resource hints help native mobile apps?
HTML hints apply to WebViews and browsers. Native apps should reuse HTTP client connection pools and warm connections to the primary API host instead.
Related Architecture Concepts
A network request waterfall is a chain of HTTP requests that must happen one after another because each depends on data from the previous response. Each step adds a full round trip, so total load time grows with the length of the chain.
HTTP keep-alive, or persistent connections, keeps a TCP connection open after a response so subsequent requests to the same host reuse it. This avoids repeating TCP and TLS handshakes for every request, significantly reducing latency for clients that call the same API repeatedly.
TLS handshake latency is the delay caused by negotiating an encrypted HTTPS connection before any application data is sent. The client and server exchange messages to agree on ciphers and verify certificates, costing one or more network round trips on top of TCP setup.
HTTP caching is the set of rules and headers that let browsers, CDNs, and proxies store responses and reuse them for later matching requests. Cache-Control defines freshness, ETag and Last-Modified enable conditional revalidation, and correct status handling avoids downloading unchanged API payloads.
Ready-to-Use Edge Recipes
FlutterFlow browsers cannot call https://jsonplaceholder.typicode.com/users/{{query.userId}} directly because of CORS and hidden credentials. RealComposer responds to OPTIONS and proxies authorized traffic.
To call two rest apis in parallel and return merged payload, configure parallel steps for REST API. Frontend / Web performs one authorized GET/POST to RealComposer and receives a merged payload.