Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4031654
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:37:26+00:00 2026-05-20T11:37:26+00:00

There are at least two ways to use an image in CSS: with an

  • 0

There are at least two ways to use an image in CSS:

  • with an HTTP request;

    url(/path/to/image.png)

  • with a data URL.

    url(data:image/png;base64,BASE64_ENCODED_DATA_HERE)

But I was wondering, as base64-encoded data takes 33% more space, therefore 33% more time to load, is it worth it, or should I just make an HTTP request–using a sprite if there’re several images?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T11:37:27+00:00Added an answer on May 20, 2026 at 11:37 am

    A separate request is almost always preferable because with data: URIs,

    • it doesn’t work in older IEs and is limited to 32k in IE8

    • it can be argued that it goes against separation of styling and content

    • Style sheet files get blown up, which may cause trouble if the browser’s developers never expected CSS files to reach these kinds of sizes

    I would use it only when there is no other choice.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From previous post, I learnt that for there are two ways, at least, to
There's at least two Bcrypt implementations in C out there: The original: http://bcrypt.sourceforge.net/ Openwall's:
Well, there are at least two low-level ways of determining whether a given number
There are at least two ways of doing LEFT OUTER JOIN in LINQ class
POSIX environments provide at least two ways of accessing files. There's the standard system
I am trying to print 1 if there are at least two of the
There are two accounts on github I'd like to use. The first, my private
In Visual Basic 2008, there's two different ways that I know of to accomplish
I am looking for email in my view page. there are two ways email
There is an example on php.net how to get last two domain segments in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.