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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:58:54+00:00 2026-06-19T02:58:54+00:00

I’ve been looking at various jQuery based slideshow scripts, interested in the different approaches

  • 0

I’ve been looking at various jQuery based slideshow scripts, interested in the different approaches used and how they handle CSS3 based transitions and DOM manipulation. I’ve a slideshow jQuery-based WordPress plugin but it is a little dated and so I’m working on re-coding it.

I’m very familiar with jQuery, been using it for years now, and having written a publicly available plugin I’ve seen some extreme use cases where 50+ images have been used with images upwards of 1920×1200+ (photographers mostly).

In doing some research on the best ways to approach such scenarios better than I am already, I’ve seen two popular trends and I’m wondering which is better.

The first is to simply position the ‘slides’ inside a container which is then animated. Often, the container is absolutely positioned to take it out of the document flow and speed things up (especially when using CSS3).

The next is to keep between 4 and 8 ‘slides’ within the DOM, and append/remove them as the user navigates.

Which of these approaches is the better approach? Appending/removing from the DOM is considered the most expensive alteration to make, but in such as scenario is it less expensive than manipulating a container containing 50+ very large images outside of the document flow? Especially on mobile devices.

  • 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-19T02:58:56+00:00Added an answer on June 19, 2026 at 2:58 am

    If you want to be the most efficient about memory usage with very large numbers of slides, then you would want to only have a few slide images loaded at a time (the next few slides coming up), not the entire set.

    At the same time, you need to preload a few upcoming images so that they are ready to go when you want to show them because the most time consuming task is downloading the images to the local browser over the internet before display.

    If you’re only preloading a few upcoming images, then you can either:

    1. Preload them to an img object that you hold in your javascript and then insert it into the DOM when needed.

    2. Preload them to an img object that is already in the DOM but hidden and then when you want to display it, you can make it visible.

    As long as you’re only preloading a couple images in advance and removing the previously displayed images so they aren’t kept in memory when no longer needed, there should not be a significant difference between these two methods. If you really wanted to know if there was any measurable difference between them (in memory consumption), you’d have to try to devise a performance test so you could measure.


    I’ve built slideshows in the past that can display very large numbers of images and the most important thing is to make sure that as your slideshow runs, it isn’t accumulating memory usage and using more and more memory. Memory usage should rise as the slideshow runs initially and then should flatten out and stop increasing because you reach a steady-state where you’re releasing an older image as you load a newer image. This is somewhat difficult to measure in browsers because they also have memory caching and lazy garbage collection going on which obscures the memory actually being used by your slideshow, but if you let it run long enough with a very large number of images and it continues to go up and up forever, then you know you have a problem to fix. If it plateaus and stops going up, then you’re probably good.

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

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
I am using Paperclip to handle profile photo uploads in my app. They upload
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
I have a small JavaScript validation script that validates inputs based on Regex. I
I'm interested in microtypography issues on the web. I want a tool to fix:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I've tracked down a weird MySQL problem to the two different ways I was
I have been unable to fix a problem with Java Unicode and encoding. The
I'm trying to convert HTML to plain text. I get many &\#8217; &\#8220; etc.

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.