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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:50:25+00:00 2026-05-26T18:50:25+00:00

I am using data URI to load images one page and I put script

  • 0

I am using data URI to load images one page and I put script at the end of my HTML. Unlike use normal url for image src, the data will be directly loaded in the HTTP request for the html page.

Thus, the script will be loaded very late at the end of the page as I have hundreds of image data loaded through this way.

I want to load the script either earlier or asynchronous with the load of imate, is there a way to delay the load of image data?

<div>
  <img src="data:image/png; base64, .........." alt="">
  <img src="data:image/png; base64, .........." alt="">
  <img src="data:image/png; base64, .........." alt="">
</div>
<script type="text/javascript" src="my-script.js"></script>
  • 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-26T18:50:26+00:00Added an answer on May 26, 2026 at 6:50 pm

    This answer is fairly straightforward. If you don’t want the images loaded synchronously with the page load, then don’t use inline image data URIs. You are getting the behavior that you have coded your web page for.

    Remote image URLs (non-data URIs) load asychronously and you can run scripts while they are loading.

    Or, you could put all the data URIs into a big string array in your page and then use javascript to construct the image objects from the data URIs after you’ve done your other javascript.

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

Sidebar

Related Questions

I'm using System.Data.Linq.DataContext file for accessing a mdf Database I want to use the
I have a page which is fetching data from a webservice using async call.
I have a very simple WPF application in which I am using data binding
I am reading an article in IEEE Computer magazine about using data mining on
I've connected to database, using data set .xsr now I wan't to extract all
I am making a 2D game in javascript/ajax, that will be using data stored
using System.Data; using System.Data.SqlClient; I am using a SqlCommand cmd.Parameters of SqlDbType.DateTime to create
passing post data using cURL requires that the name of the input. However, I
I parse data using JSON in javascript, I find this is very convenient. But
I am using temp data as follow in my controllers - very simple, when

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.