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

  • Home
  • SEARCH
  • 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 7859171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:48:18+00:00 2026-06-02T21:48:18+00:00

$(.img).on(load,function () {…} ); does load raised when : img is fully downloaded to

  • 0
$(".img").on("load",function () {...} );

does load raised when :

  • img is fully downloaded to the computer ?

or

  • img is fully rendered by browser?
  • 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-02T21:48:21+00:00Added an answer on June 2, 2026 at 9:48 pm

    From the spec:

    load: The load event occurs when the DOM implementation finishes loading all content within a document, all frames within a FRAMESET,
    or an OBJECT element.


    Even more specific from the HTML5 spec:

    When the user agent is to update the image data of an img
    element, it must run the following steps:

    1. Return the img element to the unavailable state.
    2. If an instance of the fetching algorithm is still running for this element, then abort that algorithm, discarding any pending
      tasks generated by that algorithm.
    3. Forget the img element’s current image data, if any.
    4. If the user agent cannot support images, or its support for images has been disabled, then abort these steps.
    5. If the element’s src attribute’s value is the empty string, then set the element to the broken state, queue a task to
      fire a simple event named error at the img element,
      and abort these steps.
    6. Otherwise, resolve the value of the element’s src attribute, relative to the element, and, if that is successful,
      fetch that resource. The resouce [SIC] obtained in this
      fashion is the img element’s image data. Fetching the image
      must delay the load event of the element’s document until the
      task that is queued by the networking task source once the resource
      has been fetched (defined below) has been run. … The task that
      is queued by the networking task source once the resource has been
      fetched must act as appropriate given the following alternatives:

    ↪ If the download was successful

    Set the img element to the completely available state, update the presentation of the image
    appropriately, and queue a task to fire a simple event
    named load at the img element.

    ↪ Otherwise

    Set the img element to the broken state, and queue a task to fire a simple event named error at the img element.

    Based on this, specifically:

    1. Set the img element to the completely available state
    2. Update the presentation of the image appropriately, and
    3. Queue a task to fire a simple event named load at the img element

    …the load event is fired only after the image is fully rendered by the browser.

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

Sidebar

Related Questions

I use the load function to preload Images before applying a hover effect. $(img).load(function(){
var nowCount = 0; $(img).load(function(){ imgCount++; if (nowCount == imgsCount) do something ... });
I have this code in jquery: var ratio; $(<img/>).attr(src, $(img).attr(src)).load(function() { ratio = this.width
Here's the code I'm using: function load(toLoad, area){ $(area).html('<img src=images/ajax-loader.gif alt=Loading class=center />'); loadContent();
$(function() { $(<img>, { src: http://goo.gl/GWtGo, error: function() { alert(error!); }, load: function() {
I have some pretty basic jQuery code: ... $(this).find('img').load(function(){ loadedImages++; if(loadedImages == $this.find('img').length){ ...
At the beginning of my script, I have: jQuery(function() { jQuery('img.thumbnail').hide().load( function() { jQuery('img.thumbnail').fadeIn();
I'm using the following code to fade in images: <script> $(window).load(function(){ $('.slides_control img').css('display', none');
I was using something like this: $(document).ready(function() { $('#my-img').load(function() { // do something });
in some function I remove element like this $('#'+id+' img.load').remove(); , how can i

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.