Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Dozens of separate icon requests: how to switch to SVG sprites

PRF-079Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Every file a page loads is a request. Icons such as arrows, ticks, social logos and payment badges are often saved as separate small PNG, JPG or SVG files. A page with 40 icons can then make 40 extra requests for a few kilobytes each.

An SVG sprite is one SVG file that holds many icons as <symbol> elements. You show each icon with a <use> tag. Inline SVG puts the icon code straight into the HTML, so it needs no request at all.

Why it costs you leads or sales

Many small requests add overhead, especially on slow mobile networks. They compete with the files that matter most, such as your hero image, fonts and form scripts. Icons can also pop in late and make the layout shift.

On modern hosting with HTTP/2 or HTTP/3, many small requests cost less than they used to. That is why the impact is usually low. It grows when the page also has heavy scripts or visitors are on weak connections.

How icon requests delay a landing page
  1. Page HTML loadsBrowser finds 40+ icon file references
  2. Icon requests queueEach tiny file needs its own request
  3. Key content waitsHero and form compete for bandwidth
  4. Slower first interactionVisitor may leave before the form shows

Many small icon requests queue up beside the files the visitor needs to see and use the page.

Requests per page before and afterExample numbers
Requests per page before and after (example)Before (separate files): 45 requests; After (sprite + inline): 5 requests01734455Before (separate file…After (sprite + inlin…requests

Example: a landing page with 45 separate icon files drops to 5 requests for icons after moving to one sprite and inline SVG. Your numbers will differ.

How to check if your site has it

Count icon requests in Chrome DevTools
  1. Open DevTools

    Open your landing page, press F12 (or Cmd+Option+I on Mac) and go to the Network tab.

  2. Reload with cache off

    Tick Disable cache and reload the page.

  3. Filter by Img

    Click the Img filter. Sort by Size, smallest first. Look for many files under 5 KB such as icons, arrows and logos.

  4. Note the count

    The status bar shows the number of requests. Write down how many are small image files.

  5. Cross-check with a lab tool

    Run Lighthouse in DevTools or a waterfall tool such as WebPageTest and look at the request list.

How to fix it

Pick the approach that suits each icon. Use inline SVG for a few important icons above the fold. Use a sprite for a larger set reused across the page. Keep photos and complex images as normal image files.

SVG sprite: define once, reuse anywherehtml
<!-- Put once near the top of <body> -->
<svg xmlns="http://www.w3.org/2000/svg" style="display:none">
  <symbol id="icon-check" viewBox="0 0 24 24">
    <path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/>
  </symbol>
  <symbol id="icon-phone" viewBox="0 0 24 24">
    <path d="M6.6 10.8a15 15 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11 11 0 0 0 3.6.6 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.250.2 2.450.6 3.600a1 1 0 0 1-.25 1z"/>
  </symbol>
</svg>

<!-- Use it wherever you need the icon -->
<svg width="24" height="24" aria-hidden="true"><use href="#icon-check"></use></svg>
Fix by platform
  1. Find where icons come from

    Check your theme or page builder settings. Many builders have an icon library that outputs inline SVG rather than image files.

  2. Replace image icons

    In the editor, swap uploaded PNG icons for the builder's SVG icon element, or add the sprite markup in a custom HTML block or your child theme's header.php.

  3. Clear caches

    Purge your caching plugin and CDN, then re-test in DevTools.

Icon loading before and after

Separate files

  • One request per icon
  • Icons appear one after another
  • Many files to maintain

Sprite or inline SVG

  • Zero or one request for all icons
  • Icons render with the page
  • One file to edit

How to confirm it's fixed

Confirmation checklist
  • Reload with cache disabled and compare the request count to your earlier note
  • The Img filter no longer shows dozens of tiny icon files
  • All icons still display on desktop and mobile
  • Icons keep their colour and size on hover and in dark sections
  • Lighthouse shows no new layout shift warnings
  • Forms and buttons still work after the change

How to prevent it happening again

Agree one icon method for the site, such as a single sprite or the theme's SVG icons. Ask designers and editors to use it rather than uploading new PNG icons. Add a request-count check to your release routine, and re-run Lighthouse after theme or plugin updates.

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard runs your real customer journeys, such as forms, checkouts and tracking hits, on a schedule. It does not audit how many image requests a page makes. For this, use a page speed or performance tool such as Lighthouse, PageSpeed Insights or WebPageTest, which list every request and file size.

If a clean-up like this ever breaks a button or form, a journey check can show whether the funnel still works afterwards. The Free plan covers 1 site and 2 journeys with daily checks and no card.

Questions people ask

Why does my page make so many small image requests?

Each icon, badge or logo saved as its own file needs its own request. Themes and page builders often output icons as separate PNG or SVG files, so a page can reach dozens of tiny requests. Inline SVG or a sprite removes most of them.

What is an SVG sprite?

An SVG sprite is one SVG file or code block holding many icons as <symbol> elements. You show an icon with <use href="#icon-name">. The browser loads the set once instead of fetching each icon separately.

Is inline SVG better than an SVG sprite?

Inline SVG needs no request and suits a few key icons above the fold. A sprite is tidier when the same icons repeat across the page or site. Many sites use both.

Do too many requests still matter with HTTP/2?

They matter less, because HTTP/2 and HTTP/3 send many requests over one connection. Each request still adds some overhead, and slow mobile networks feel it most. Treat it as a low-impact clean-up, not an emergency.

How do I count image requests on my page?

Open Chrome DevTools, go to the Network tab, tick Disable cache and reload. Click the Img filter and sort by size to spot many tiny files. The bottom bar shows the total request count.

Should I use an icon font instead?

Icon fonts reduce requests but often load a whole library for a few icons, and they can cause display and accessibility problems. Inline SVG or a sprite is usually the lighter and cleaner choice.

Can FunnelGuard tell me how many image requests my page makes?

No. This is outside what FunnelGuard checks. Use a page speed tool such as Lighthouse, PageSpeed Insights or WebPageTest to see request counts and file sizes.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.