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 8417283
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:59:49+00:00 2026-06-10T01:59:49+00:00

I am writing a javascript application which fetches data as JSON from a PHP

  • 0

I am writing a javascript application which fetches data as JSON from a PHP based API. Currently images URLs are received from the API which are then used to display them using the <img> tag.

Is it practical and efficient to use dataURI instead of regular image URLs ?
My application is intended mainly for mobile phones.So will this need additional processing power in the client side ?

  • 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-06-10T01:59:50+00:00Added an answer on June 10, 2026 at 1:59 am

    Here are four reasons I might avoid Data URIs:

    1) There’s an overhead with Data URIs (both processing and bandwidth)

    2) Data URIs are not cached

    http://en.wikipedia.org/wiki/Data_URI_scheme#Disadvantages

    3) Data URIs may leak memory (in Webkit-based browsers – so Chrome/Safari and the “big” smartphones!)

    http://waldheinz.de/2010/06/webkit-leaks-data-uris/

    Data URI leak in Safari (was: Memory Leak with HTML5 canvas)

    4) They might be up to 6x slower!

    http://www.mobify.com/blog/data-uris-are-slow-on-mobile/

    On the flip side – there’s definitely a place for Data URIs. If the images are fairly static, passing back a Data URI to the client (and then caching that string in say localStorage) could be an elegant solution.

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

Sidebar

Related Questions

So I am writing an application using ajax getting from a xml based api.
I'm writing a PHP application which uses AJAX to submit forms via POST when
I'm writing an application which uses ASP.NET MVC with JSON.NET as the server, sending
I am new to javascript and jquery. I was writing an application, in which
I am writing an web application powered by PHP, Smarty, JavaScript, CSS, MySQL. There
I'm writing an application to crawl some websites and scrape data from them. I'm
I'm currently writing an application which uses ajax on the front end and ASP.NET
I'm writing a web based application (large cargo aircraft weight and balance) in which
I'm writing a JavaScript application, and I found a nice library qtip2 . My
I am writing an application in JavaScript (with JQuery). The application has a lot

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.