On this page
This guide is practical and meant as a reference: you will know exactly where each request comes from, which technique is right for reducing it, and when combining helps and when it has become harmful in the HTTP/2 era. It is part of our performance series and complements the complete guide to speeding up your website, which ranks all performance improvements by impact.
What is an HTTP request, and why does the count matter?
When a visitor opens your page, the browser doesn't download "the page" all at once. It first downloads the HTML file, then reads it and discovers it needs other resources: stylesheets, scripts, images, fonts, icons. For each of these resources, the browser sends a separate HTTP request to the server and waits for the response. A typical modern page fires between 50 and 150 requests to display a single page.
The problem isn't the request itself but the fixed cost that comes with every request regardless of the file's size. Each new request may go through these stages:
| Stage | What happens | When it repeats |
|---|---|---|
| DNS lookup | Translating the domain name into an IP address | On the first request to each new domain |
| TCP connection | A three-way handshake to open the channel | On the first connection to each domain |
| TLS handshake | Exchanging encryption keys (HTTPS) | On the first secure connection to each domain |
| Sending the request | The browser sends the request headers | Every request |
| Server time (TTFB) | The server processes and starts responding | Every request |
| Downloading the content | The actual bytes arrive | Every request |
The key observation: even if the file is very small (a 1 KB icon, for example), the request's round trip itself — there and back across the network — may take tens or hundreds of milliseconds. Ten small files don't equal one file of their combined size; they equal ten network round trips. This is where the number of requests becomes a bottleneck independent of the total weight.
Why is the effect magnified on mobile?
On a mobile network — especially 3G/4G in outlying areas or with a weak signal — the time for a single round trip (RTT) rises to 100–300 milliseconds or more. Multiply that by the number of requests and you get a frightening number. High latency multiplies the price of every request, which is why sites with many requests are painfully slow on mobile even if they seem acceptable on a fast desktop connection.
| Scenario | Approximate RTT | Impact of 100 requests |
|---|---|---|
| Home fiber | 5–20ms | Tolerable but not ideal |
| Good Wi-Fi | 20–40ms | Slowdown starts to show |
| Urban 4G mobile | 50–100ms | Noticeable slowness |
| 3G mobile/weak signal | 150–300ms+ | Severe, painful slowness |
The practical result: reducing requests is one of the cheapest improvements for its impact, because it hits the fixed cost directly instead of shrinking only the bytes.
Where do your page's requests come from? A map of the sources
Before you reduce, you need to know where the requests come from. These are their main sources, ordered by how common they are and the size of their impact:
| Source | Examples | Severity for the request count | Note |
|---|---|---|---|
| CSS files | Theme stylesheets, plugins, design frameworks | Medium–high | Each plugin may inject its own stylesheet |
| JavaScript files | Theme scripts, plugins, frameworks | Very high | The most fragmented and heaviest |
| Images | Content images, backgrounds, icons | High | Each image is a separate request |
| Fonts | Different families and weights | Medium | Each weight/style is a separate file |
| Third parties | Analytics, ads, chat widgets, maps | Very high | They bring extra connections and domains |
| Separate icons | A PNG/SVG for each icon | High | They add up quickly |
Scripts and third-party files are usually the most dangerous sources: a single analytics script can pull a chain of requests to multiple domains, each starting from scratch with DNS, a connection and TLS. That is why people say "the slowest line of code on your site is often a line someone else wrote."
How do you count and measure your page's requests?
You can't improve what you don't measure. The first step is knowing the real number: how many requests does your page fire, which are the heaviest, and which are the slowest? Two tools are enough for most cases:
DevTools (the Network panel)
Open the page in Chrome or Firefox, press F12, go to the Network tab, enable "Disable cache," then reload the page. The bottom bar shows an important summary: the number of requests, the transferred size, and the load time.
Tips for reading it:
- Sort the list by the Size column to find the heaviest files, and by the Time column to find the slowest.
- Use the type filters (JS, CSS, Img, Font, Doc) to find out which category generates the most requests.
- The Waterfall column reveals sequential requests (which wait for one another) versus parallel ones.
WebPageTest
WebPageTest gives you a deeper report from a neutral external test: a detailed waterfall chart, the number of requests by type, the number of distinct connections and domains, and a filmstrip view of how the page renders visually. Most importantly, it lets you test from different geographic locations and network speeds, revealing what a mobile visitor actually experiences.
| Tool | Best for | Shows the request count? | Neutral? |
|---|---|---|---|
| DevTools – Network | Quick local diagnosis | Yes (summary bar) | No (your device and network) |
| WebPageTest | Deep analysis from outside | Yes (broken down by type and domain) | Yes |
| PageSpeed Insights | Core Web Vitals verdict + recommendations | Partly (under "reduce resources") | Yes |
| GTmetrix | A simplified waterfall report | Yes | Yes |
Record your current number (for example: 132 requests, 3.1 MB, 4.2 seconds) as a baseline, then measure after each change to prove the effect. Measuring before and after is what separates real improvement from guesswork.
Reducing CSS and JavaScript files
Stylesheets and scripts are the operational heart of the problem, because they are usually the most numerous and the most influential in blocking rendering (render-blocking). Three basic operations, in order: remove what is unused, then minify what remains, then combine it where that helps.
1) Removing unused resources
Many sites load stylesheets and scripts that aren't used on the current page at all — a slider library on the "Contact us" page, or form styles that only appear on the sign-up page. The Coverage panel in DevTools (open it from the command menu with Ctrl+Shift+P, then type Coverage) shows you the percentage of unused code in each file. Every unused file = a request that can be eliminated entirely.
2) Minification
Minification removes spaces, line breaks, comments and long variable names without changing behavior. It doesn't reduce the number of requests, but it shrinks the size of each one, and it is a basic step that comes before combining. Most build tools do it automatically, and in WordPress optimization plugins handle it.
3) Concatenation (combining)
Combining takes several small files of the same type and merges them into one, so five CSS requests become one. This was the most important optimization in the HTTP/1.1 era. An example of simple manual combining in a build step from the command line:
# Combine and minify CSS files into one file
cat reset.css layout.css components.css > bundle.css
csso bundle.css -o bundle.min.css
# Combine JavaScript files
cat utils.js menu.js slider.js > bundle.js
terser bundle.js -o bundle.min.js -c -mThen you reference one file instead of several:
<!-- Instead of four separate stylesheets -->
<link rel="stylesheet" href="/css/bundle.min.css" />
<!-- Instead of three separate scripts -->
<script src="/js/bundle.min.js" defer></script>| Operation | Reduces the request count? | Reduces the size? | Note |
|---|---|---|---|
| Removing unused code | Yes (eliminates entire requests) | Yes | The highest impact |
| Minification | No | Yes | Always a basic step |
| Concatenation | Yes | Not directly | Helps a lot on HTTP/1.1 |
| Transfer compression (gzip/brotli) | No | Yes, a lot | Always enable it on the server |
Note that transfer compression (gzip or brotli at the server level) is different from minification: the first compresses the bytes in transit and the browser then decompresses them, while the second rewrites the code itself. Use both together.
Loading scripts smartly: defer and async
Reducing the number of scripts is half the solution; the other half is when they run. A regular script blocks page parsing until it is downloaded and executed. The defer and async attributes free the browser:
<!-- defer: downloads in parallel, runs after HTML parsing is complete, in order -->
<script src="/js/app.js" defer></script>
<!-- async: downloads in parallel, runs as soon as it arrives, with no guaranteed order -->
<script src="https://analytics.example.com/tag.js" async></script>| Attribute | Blocks parsing? | Preserves order? | Best for |
|---|---|---|---|
| No attribute | Yes | Yes | Critical scripts before the content (rare) |
defer | No | Yes | Most application scripts |
async | No | No | Independent scripts such as analytics |
The practical rule: put defer on most of your scripts and async on independent third-party scripts, and leave a script without an attribute only if it is needed before the first content renders.
Icons: SVG and sprites instead of separate images
Icons are a hidden source of request bloat: a site with 20 icons as 20 separate PNG files means 20 extra requests. There are three modern strategies to cut this number drastically:
1) Inline SVG
The best option for a few important icons: put the SVG code directly inside the HTML, so there is no network request at all — the icon is part of the document itself:
<button>
<svg viewBox="0 0 24 24" width="20" height="20" aria-hidden="true">
<path fill="currentColor" d="M12 2 15 9 22 9 16.5 13.5 18.5 21 12 16.5 5.5 21 7.5 13.5 2 9 9 9z" />
</svg>
<span>Add to favorites</span>
</button>An extra advantage: the icon inherits the text color via currentColor and adapts visually without alternative files, and it stays sharp at any screen resolution.
2) SVG sprite (a single symbol file)
If you have many icons, gather them into a single SVG file containing <symbol> definitions, then call each icon with <use>. The result: one request for all the icons, which can also be cached:
<!-- The symbol file is loaded once -->
<svg style="display:none">
<symbol id="icon-cart" viewBox="0 0 24 24">
<path d="M7 4h-2l-1 2v2h2l3 8h8l3-6h-13" fill="currentColor" />
</symbol>
</svg>
<!-- Then each icon is called without a new request -->
<svg width="24" height="24"><use href="#icon-cart" /></svg>3) Icon fonts
The old approach: a font file containing the icons as characters. One request, but heavier than necessary (it loads every icon, even ones you don't use), less visually sharp and weaker for accessibility. It has given way to SVG.
| Approach | Number of requests | Visual sharpness | Flexible coloring | Accessibility | Best for |
|---|---|---|---|---|---|
| Separate PNG images | High (one request per icon) | Limited | No | Medium | Not recommended |
| Inline SVG | Zero | Excellent | Yes (currentColor) | Excellent | A few critical icons |
| SVG Sprite | One request for all | Excellent | Yes | Good | Many icons |
| Icon font | One request | Good | Limited | Poor | Legacy only |
The bottom line: use inline SVG for the few most important icons and an SVG sprite for the rest, and avoid separate images and icon fonts.
Fonts: fewer families, fewer weights, smarter loading
Every font weight and style is a separate file: "bold," "regular" and "italic" are three requests for a single family. And if you load two families with multiple weights, you quickly exceed six or eight font requests on their own — all of them heavy and affecting how the text appears.
Principles for reducing font requests
| Technique | What it does | Impact |
|---|---|---|
| Fewer families | One Arabic family + one Latin family only | Fewer files |
| Fewer weights | Keep only regular + bold | Each weight is a file saved |
| Subsetting | Removes unused characters | Sharply shrinks each file's size |
| The WOFF2 format | The newest and smallest format | Fewer bytes per font |
font-display | Controls how text appears during loading | Prevents invisible text |
preconnect/preload | Starts fetching the font early | Reduces display delay |
Subsetting
A complete Arabic font may contain thousands of characters and glyphs your site doesn't use. Subsetting keeps only what you need (the basic Arabic letters + numerals + punctuation), greatly reducing the file's bytes. It doesn't reduce the number of requests, but it makes each request cheaper.
Early loading: preconnect and preload
If your fonts come from an external domain (such as a font provider), opening the connection early saves DNS+TLS time. And if the font is critical for the first render, preload makes the browser fetch it immediately instead of discovering it late inside the CSS:
<!-- Set up the connection to the font domain early -->
<link rel="preconnect" href="https://fonts.example.com" crossorigin />
<!-- Fetch the critical font immediately -->
<link rel="preload" href="/fonts/arabic.woff2" as="font" type="font/woff2" crossorigin />Then in CSS, use font-display: swap so the text appears immediately in a fallback font and is then swapped when the font arrives, so content never stays hidden:
@font-face {
font-family: "AppArabic";
src: url("/fonts/arabic.woff2") format("woff2");
font-weight: 400 700; /* A variable font covering several weights in one file */
font-display: swap;
}An expert tip: variable fonts combine several weights in a single file, so instead of loading regular, medium and bold as three files, you load one variable file that covers them all — a real reduction in requests.
Reducing plugins and third-party scripts
In WordPress especially, each plugin may inject one or more CSS stylesheets and JS scripts into every page — even pages where the plugin isn't used. Five "lightweight" plugins may add ten requests or more. This is one of the biggest sources of bloat, and one of the easiest to fix.
| Source | Problem | Fix |
|---|---|---|
| Many plugins | Each injects CSS/JS globally | Delete what isn't necessary, and merge functions |
| A globally loaded plugin | Loads its assets on every page | Limit loading to the relevant pages |
| Analytics/ads | Domains and chained requests | Load them async and deferred |
| Chat widgets/maps | Huge, critical scripts | Load them on interaction only |
| Embedded video players | A heavy iframe + scripts | Replace them with a click-to-play preview image |
The third-party rule
Every third-party script is an invitation to an external domain outside your control: it may be slow, and it may pull in extra requests. Practical steps:
- Review the list regularly: many sites load analytics scripts or tools that are no longer used.
- Defer what isn't critical: chat, maps and video aren't loaded until the user interacts (a click on "Open chat," for example).
- Host locally where possible: some scripts can be hosted on your domain, saving a new DNS lookup and connection.
Reducing plugins doesn't only reduce requests; it also eases the load on the database and server time, which complements the other performance improvements explained in the complete guide to speeding up your website.
Lazy loading for images and iframes
Not every resource is needed the moment the page opens. Images below the fold (outside the first screen) and embedded iframes (video, maps) can have their loading deferred until the user scrolls close to them. This doesn't reduce the total number of requests in the long run, but it reduces simultaneous requests at the start — which is what matters for the speed of the first render (LCP).
Modern browsers support lazy loading natively with a single attribute, without any script:
<!-- The image loads only when it approaches the screen -->
<img src="/images/gallery-7.webp" alt="Product gallery" width="800" height="600" loading="lazy" />
<!-- The embedded iframe too -->
<iframe src="https://maps.example.com/embed" loading="lazy" title="Location on the map"></iframe>| Resource | Deferral strategy | Warning |
|---|---|---|
| Images below the fold | loading="lazy" | Don't lazy-load the main LCP image |
| Iframes (maps/video) | loading="lazy" or click to play | Embedded video is very heavy |
| The hero/LCP image | Load it immediately — even preload it | Deferring it hurts LCP |
An important warning: don't lazy-load the hero image or the largest visible element (LCP); deferring it delays the appearance of the most important content and hurts Core Web Vitals. Lazy loading is only for what is off-screen. For details on compressing images and their modern formats, see compressing and optimizing images for the web.
How HTTP/2 and HTTP/3 affect the combining rule
This is where the story changes a little. In HTTP/1.1, the browser opened a limited number of parallel connections per domain (usually six), and each connection served one request at a time. So a large number of requests was disastrous, and combining (putting all CSS in one file and all JS in one file) was the single most important optimization.
HTTP/2 introduced multiplexing: dozens of requests travel over a single connection in parallel without waiting. This sharply reduced the penalty for many requests — but it didn't eliminate it. Each request still carries overhead on the server and browser (processing headers, decompression, creating objects), and a single compressed file still compresses better than several small separate files.
HTTP/3 builds on this on top of the QUIC protocol (built on UDP), solving the "head-of-line blocking" problem at the transport level and coping better with unstable networks and mobile. The result: better performance in difficult network conditions, but the principle of "reduce what you don't need" still holds.
| Aspect | HTTP/1.1 | HTTP/2 | HTTP/3 |
|---|---|---|---|
| Multiplexing | No (one request per connection) | Yes, over a single connection | Yes, over QUIC |
| Penalty for many requests | Very severe | Greatly reduced | Reduced + more robust on mobile |
| Importance of combining | Decisive | Useful, not decisive | Useful, not decisive |
| Head-of-line blocking | At the request level | At the TCP level | Solved (UDP/QUIC) |
| Best for unreliable networks | Poor | Better | Best |
The new combining rule in the HTTP/2 era
Don't combine "everything into one giant file" as we used to. Excessive combining now has drawbacks:
- It breaks caching: changing a single line in a small component invalidates the cache for the whole giant bundle, so the user re-downloads everything.
- It delays rendering: the browser waits for the full bundle to download before executing any of it.
The modern trend is balanced splitting (code splitting): medium-sized logical bundles — shared code in one bundle, and page-specific code in another — not a single file and not a hundred files. It combines the benefit of fewer requests with the benefit of precise caching.
| Situation | Recommended action |
|---|---|
| Still on HTTP/1.1 | Combine aggressively (one CSS, one JS) |
| On HTTP/2/3 + a small site | Moderate combining is enough |
| On HTTP/2/3 + a large application | Code splitting into logical bundles |
| A file that changes often | Separate it from the static cache |
Enabling HTTP/2 on the server
HTTP/2 requires HTTPS. On Nginx, enabling it is a single line in the listen block:
server {
listen 443 ssl;
http2 on;
server_name example.com;
ssl_certificate /etc/ssl/certs/example.crt;
ssl_certificate_key /etc/ssl/private/example.key;
# Enable transfer compression to reduce the size of each request
gzip on;
gzip_types text/css application/javascript image/svg+xml;
}On most managed hosting plans and CDN services, HTTP/2 and HTTP/3 are already enabled, so you don't need manual configuration. This is one reason choosing modern hosting matters.
A practical workflow: measure, remove, combine, defer
Bring everything above together in steps ordered by priority; apply them in order and measure after each step:
| Step | Action | Tool | Impact |
|---|---|---|---|
| 1. Measure | Record the request count, size and load time | DevTools / WebPageTest | A baseline |
| 2. Remove | Remove unnecessary plugins, scripts and fonts | The Network/Coverage panel | The highest impact |
| 3. Combine and minify | Combine CSS/JS, use an SVG sprite, logical bundles | A build tool / optimization plugin | Fewer requests and smaller size |
| 4. Defer | loading="lazy", click to play heavy content | Native HTML attributes | Lighter initial load |
| 5. Optimize loading | defer/async, preconnect/preload | The page head | Smarter ordering |
| 6. Measure again | Compare with the baseline and prove the improvement | DevTools / WebPageTest | Confirmation |
The golden rule: don't guess. Change one thing, measure, keep it if things improved, and revert it if it didn't help. Random optimization without measurement can break the site with no gain.
Common mistakes and how to avoid them
Reducing requests is a double-edged sword if applied without understanding. These are the most common mistakes:
| Mistake | Why it's harmful | The right alternative |
|---|---|---|
| Combining everything into a giant bundle | A small change invalidates the cache for everything | Logical bundles (code splitting) |
| Deferring a script that is critical for rendering | The site appears broken at first | defer, not full deferral, for critical scripts |
| Lazy-loading the main LCP image | Delays the most important element and hurts Core Web Vitals | Load it immediately or preload it |
| Removing "unused" CSS without checking | It may be used in dynamic situations | Check before deleting; test interactions |
| Relying on HTTP/2 to ignore the count | Every request still carries overhead | Reduce the count despite multiplexing |
| Hosting an ad script locally, verbatim | Breaks updates and tracking | Defer it instead of hosting it |
| Ignoring transfer compression (gzip/brotli) | Needlessly larger files | Enable it on the server/CDN |
Another common mistake: confusing reducing the count with reducing the size. They are complementary goals, not identical ones. You may succeed in cutting the number of requests while the site stays slow because the combined files are huge, or vice versa. Address both sides together, and don't forget that caching is what makes repeated requests almost free on later visits — see cache types and when to use each to understand the layers.
The role of caching and a CDN in the request equation
Reducing requests mainly concerns the first visit. On later visits, caching means static resources are fetched from the browser cache or a CDN edge instead of the origin server, so the cost of each request drops dramatically. That is why three fronts work together:
| Layer | What it does to requests | When it helps |
|---|---|---|
| Reducing the count | Cuts requests at the source | Every visit, especially the first |
| Browser cache | Eliminates re-downloading static files | Repeat visits by the same visitor |
| CDN | Serves requests from a nearby edge | All visitors; reduces latency |
A content delivery network (CDN) reduces the time of each request by bringing files geographically closer to the visitor, lowering the RTT that multiplied the price of requests in the first place. To understand how this works and when you need it, see what a CDN is and why you need one. The unifying idea: reduce the number of requests, then make what remains cheap with caching and a CDN.
Quick expert tips
- Start by removing, not combining: dropping a plugin you don't need is more powerful than combining its assets. A request that is never made is always the fastest.
- Watch domains, not just requests: every new external domain costs a full DNS+TLS round. Reducing the number of domains is sometimes more important than reducing the number of requests within the same domain.
- Use variable fonts: one file instead of three weights.
- Turn embedded video into a click-to-play image: it saves very heavy scripts and iframes until the visitor decides to watch.
- Audit regularly: sites accumulate forgotten scripts and plugins over time. A quarterly audit keeps them lean.
- Don't trust a fast network: always test under slow mobile conditions, since that is what most of your visitors actually face.
Frequently asked questions
Does reducing the number of requests still matter with HTTP/2 and HTTP/3? Yes, but less than before. Multiplexing in HTTP/2 removed the penalty of sequential waiting, but every request still carries processing overhead on the server and the browser, and a combined file compresses better. The rule has become "reduce wisely" instead of "combine everything" — not "ignore the count entirely."
What is the difference between reducing the number of requests and reducing page size? The number is about how many files you request (each file is a network round trip with a fixed cost), and the size is about how many bytes are downloaded in total. A page can have few requests but be heavy, or many requests but be light. Good performance addresses both sides together.
What is the ideal number of requests for a page? There is no magic number, but as a general rule: as few as possible without breaking functionality. Many fast pages stay under 50 requests, while heavy pages exceed 150. What matters most is the direction: measure your current number and bring it down gradually while watching the actual load time.
Should I combine all CSS and JavaScript files into one file? Not always. On HTTP/1.1, yes. On HTTP/2/3, moderate combining or logical splitting (code splitting) is better: a shared bundle + a bundle per page. A single giant bundle breaks caching and delays rendering after any small change.
How do I count my page's requests accurately? Open DevTools (F12), go to the Network tab, enable "Disable cache," and reload the page; the count appears in the summary bar below the list. For a neutral external analysis, use WebPageTest, which breaks requests down by type and domain.
What is the best approach to icons for reducing requests? Inline SVG inside the HTML for the few most important icons (zero requests), and an SVG sprite for a large set (one cacheable request for all of them). Avoid separate PNG images (one request per icon) and icon fonts (heavier and weaker for accessibility and sharpness).
Does lazy loading reduce the number of requests? It doesn't reduce the total, but it reduces simultaneous requests when the page opens by deferring what is off-screen (images below the fold, iframes). This improves the speed of the first render (LCP). Don't lazy-load the hero image or the largest visible element.
What is the difference between defer and async for scripts?
Both download the script in parallel without blocking HTML parsing. defer runs the scripts after parsing is complete and in order (best for most application scripts), while async runs each script as soon as it arrives, with no guaranteed order (best for independent scripts such as analytics).
Do many plugins in WordPress increase requests? Yes, significantly. Each plugin may inject one or more CSS stylesheets and JS scripts into every page, sometimes even on pages that don't use it. Delete what isn't necessary, merge similar functions into a single plugin, and limit asset loading to the pages that actually need it.
What role does caching play in reducing the impact of requests? Reducing the count mainly concerns the first visit; caching makes repeated requests almost free, since static resources are fetched from the browser cache or the CDN edge instead of the server. The two are complementary: reduce the count first, then make the rest cheap with caching and a CDN.
Should I host third-party scripts on my own domain? Sometimes. Hosting a static script locally saves a new DNS lookup and connection, and it helps. But don't host scripts that are updated constantly (ads, tracking), because you will break their updates; it is better to defer their loading (async/on interaction) than to host them.
Conclusion
Reducing HTTP requests is one of the cheapest and most lasting performance improvements for its impact, because it hits the fixed cost of every request directly — the cost that mobile networks and high latency multiply. The plan is clear: count your requests with DevTools and WebPageTest, remove the plugins, fonts and third-party scripts you don't need, combine and minify what remains along with SVG icons, defer what isn't critical, then measure again. And remember that HTTP/2 and HTTP/3 have relaxed the combining rule without abolishing it, and that caching and a CDN complete the equation by making repeated requests almost free. When evaluating any host, check that it supports HTTP/2/3 and brotli compression; that gives you a better starting point before any optimization.
Sources
Frequently asked questions
Does reducing the number of requests still matter with HTTP/2 and HTTP/3?
Yes, but less than before. Multiplexing in HTTP/2 removed the penalty of sequential waiting, but every request still carries processing overhead on the server and the browser, and a combined file compresses better. The rule has become "reduce wisely" instead of "combine everything" — not "ignore the count entirely."
What is the difference between reducing the number of requests and reducing page size?
The number is about how many files you request (each file is a network round trip with a fixed cost), and the size is about how many bytes are downloaded in total. A page can have few requests but be heavy, or many requests but be light. Good performance addresses both sides together.
What is the ideal number of requests for a page?
There is no magic number, but as a general rule: as few as possible without breaking functionality. Many fast pages stay under 50 requests, while heavy pages exceed 150. What matters most is the direction: measure your current number and bring it down gradually while watching the actual load time.
Should I combine all CSS and JavaScript files into one file?
Not always. On HTTP/1.1, yes. On HTTP/2/3, moderate combining or logical splitting (code splitting) is better: a shared bundle + a bundle per page. A single giant bundle breaks caching and delays rendering after any small change.
How do I count my page's requests accurately?
Open DevTools (F12), go to the Network tab, enable "Disable cache," and reload the page; the count appears in the summary bar below the list. For a neutral external analysis, use WebPageTest, which breaks requests down by type and domain.
What is the best approach to icons for reducing requests?
Inline SVG inside the HTML for the few most important icons (zero requests), and an SVG sprite for a large set (one cacheable request for all of them). Avoid separate PNG images (one request per icon) and icon fonts (heavier and weaker for accessibility and sharpness).
Does lazy loading reduce the number of requests?
It doesn't reduce the total, but it reduces simultaneous requests when the page opens by deferring what is off-screen (images below the fold, iframes). This improves the speed of the first render (LCP). Don't lazy-load the hero image or the largest visible element.
What is the difference between defer and async for scripts?
Both download the script in parallel without blocking HTML parsing. defer runs the scripts after parsing is complete and in order (best for most application scripts), while async runs each script as soon as it arrives, with no guaranteed order (best for independent scripts such as analytics).
Do many plugins in WordPress increase requests?
Yes, significantly. Each plugin may inject one or more CSS stylesheets and JS scripts into every page, sometimes even on pages that don't use it. Delete what isn't necessary, merge similar functions into a single plugin, and limit asset loading to the pages that actually need it.
What role does caching play in reducing the impact of requests?
Reducing the count mainly concerns the first visit; caching makes repeated requests almost free, since static resources are fetched from the browser cache or the CDN edge instead of the server. The two are complementary: reduce the count first, then make the rest cheap with caching and a CDN.
Should I host third-party scripts on my own domain?
Sometimes. Hosting a static script locally saves a new DNS lookup and connection, and it helps. But don't host scripts that are updated constantly (ads, tracking), because you will break their updates; it is better to defer their loading (async/on interaction) than to host them.