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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:17:17+00:00 2026-05-25T15:17:17+00:00

I have a number of images that are lined up together relative using css,

  • 0

I have a number of images that are lined up together relative using css, etc.

I have this code in a javascript function after I change a select dropdown:

$("#imagePlaceholder").html("<img src='/Content/Images/image1.png' />");

The issue is that while the image is being downloaded, the rest of the images sort of “jump” up a bit and move over and them they move back once the image is downloaded to the client.

So it looks fine once the image has been download but I want to come up with a way to avoid that “jerkyness” during the transition.

Is there a standard way or best practice for this?

  • 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-25T15:17:17+00:00Added an answer on May 25, 2026 at 3:17 pm

    Or, load the images into a javascript image object and don’t insert them into the page until they are loaded. This might work better if you don’t know the size of the images ahead of time.

    var img = new Image();
    img.onload = function () {
        // after it's loaded successfully here, 
        // you can insert it into the DOM with no jerkiness
    }
    img.src = "xxx";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a number of draggable images that I want to clone and then
I have a number of images and a CSV data file that I want
I have some code that does something like this (Irrelevant bits snipped): void foo(Bitmap
I cant find that what i have missed in this function so its generating
I have a large number of images (over 16,000) that are in SQL, that
I have a binary image that represents a number in MATLAB: I'd like to
I have a page that has a large image on it with a number
I have an images array in which there are number of images. Not fixed,
I have a div which contains a number of images. I would like to
I have python script which downloads N number of images from website. I run

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.