A practical guide to preload hints for key resources
Preload hints tell a browser to start fetching resources likely to support the first rendered view. They can reduce delays when a font, hero image or script is discovered late in the page-loading process, improving Largest Contentful Paint on mobile connections. A hint changes priority and timing; it does not reduce file size, repair a slow origin or make unnecessary code worthwhile.
For Australian audiences, careful prioritisation matters because visitors often browse on phones while commuting between Melbourne and Sydney suburbs, shopping during lunch breaks, or checking sites from regional and remote areas. The approach starts with the critical rendering path, adds only evidence-based hints, matches them to later requests, and checks the result under realistic conditions.
Why preload priority matters in Australia
Large cities create intense bursts of traffic around work, school drop-offs and shopping districts, but many Melbourne and Sydney visitors browse on mobile networks with changing capacity. Preloading one genuinely critical asset can help it arrive before the main thread would otherwise request it, particularly when the device is also processing JavaScript.
Australian online retail and media sites often combine core content with payment options, analytics and advertising scripts. Australian payment flows may introduce PayTo, card-wallet or fraud-check integrations that compete for bandwidth. Preloading should therefore favour the hero asset or checkout interface rather than every script involved in the page.
Outside major capitals, fixed-line, fixed-wireless, LTE and satellite connections can produce very different latency and throughput. Preloading cannot overcome those physical constraints, but it can prevent a critical file from waiting behind lower-priority requests when bandwidth becomes constrained.
Find the resources worth preloading
Start with a cold-cache mobile recording in browser developer tools. Examine the network waterfall, request priorities, transfer sizes and the chain leading to the Largest Contentful Paint. A Performance panel can also show which stylesheets, fonts and scripts were discovered after the parser began.
Preloading is most useful when a necessary resource would otherwise arrive too late. Likely candidates include a web font referenced by CSS, an important image found only in a stylesheet, or a route dependency needed for immediate interaction. An image already declared near the top of the HTML, for example, is usually discovered quickly and may gain little from a separate hint.
Use the waterfall to distinguish discovery delays from server delays. A slow response still needs caching, compression and origin improvements. The linked render-blocking resource guide explains how stylesheets and late-discovered dependencies affect the critical path.
Build hints that match browser requests
Place preload links in the document head and include enough information for the browser to classify and fetch each resource correctly. For example:
<link rel="preload" href="/assets/site.woff2" as="font"
type="font/woff2" crossorigin>
<link rel="preload" href="/assets/hero.avif" as="image"
type="image/avif" fetchpriority="high">
<link rel="preload" href="/assets/checkout.js" as="script">
The as attribute identifies the resource type and destination, while type provides an optional MIME-type hint. The crossorigin value must match the later request’s CORS mode; font requests commonly require it even when the font is served from the same origin. Mismatched attributes can produce a duplicate download.
Responsive images require particular care. If the final element uses srcset and sizes, the preload should provide matching imagesrcset and imagesizes values. Otherwise, the browser may fetch one image for the hint and another for the visible element, wasting data and delaying the intended resource.
Related hints have different jobs. preconnect opens a connection without downloading a resource, dns-prefetch resolves DNS, and prefetch generally fetches something for possible later use. Module dependencies are better suited to modulepreload. When comparing third-party delivery with local hosting, a self-hosting resource reference can support the cache and resilience trade-off.
Test under Australian network conditions
Reproduce the experience of a visitor using a mid-range phone on a congested mobile connection. Browser tools can slow downloads and limit processor speed, but the selected profile should reflect actual Australian usage rather than an unusually harsh laboratory preset or an ideal fibre connection.
Include representative tests for 4G and 5G devices, along with fixed broadband and regional fixed-wireless or satellite access. Remote testing locations around Sydney, Melbourne, Brisbane, Perth and Adelaide can reveal geographic or infrastructure differences that a local development machine cannot show.
Use real-user monitoring alongside laboratory results. Compare field Largest Contentful Paint, connection speed and resource waterfalls before and after each change. This establishes whether a preload consistently improves the experience or merely shifts contention from one request to another.
Protect security, privacy and third parties
Preloading can initiate a request earlier than expected, including one to another company’s domain. Content Security Policy directives for scripts, styles, fonts, images and connections should therefore describe every origin allowed to participate. A preload must not bypass the same restrictions applied to the eventual resource request.
The Privacy Act 1988 and Australian Privacy Principles can apply when preload activity, analytics or real-user monitoring collects identifiers, IP addresses or other personal information. Covered organisations should minimise collection, explain relevant practices and avoid contacting non-essential advertising or analytics providers before any required permission is obtained.
Third-party scripts and styles may also introduce supply-chain risk. Use Subresource Integrity where practical, monitor vendor releases and apply the Australian Cyber Security Centre’s advice on maintaining trusted dependencies. Preloading changes when code is fetched, not whether it is safe or current.
A focused preload checklist
Treat these points as release criteria rather than a permanent collection of tags:
- Define the page’s Largest Contentful Paint target and set a small preload budget for each route.
- Confirm from the waterfall that every preloaded resource is genuinely late-discovered and important to the first view.
- Match
href,as,type,crossorigin,imagesrcsetandimagesizeswith the eventual request. - Give preloaded assets cacheable URLs, correct MIME types, compression and an appropriate cache lifetime.
- Test cold-cache downloads, slow mobile profiles, representative Australian locations and real-user results.
- Review Content Security Policy, third-party integrity and performance data before retaining or removing each hint.
Keep the policy documented so developers, designers and content teams understand why each preload exists. Teams seeking a central place for documentation, user feedback or business and media enquiries can use SpeedTao’s support and contact hub.
A preload policy remains effective when every retained hint has a measured purpose, a matched request and a clear owner for periodic review.