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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:37:01+00:00 2026-05-30T23:37:01+00:00

I have some PNG’s being moved around a screen in a repeated loop which

  • 0

I have some PNG’s being moved around a screen in a repeated loop which I believe may be crashing some browsers.

For example:

function parachute_drop(drop_object, animation_duration) {

    $(drop_object)
        .animate({top: "750px"},animation_duration)
        .animate({top:"-150px", opacity: 100
        },{
        duration: 0, 
        complete: function(){
            parachute_drop(drop_object,animation_duration);
        }
    });
 }

 parachute_drop('#object_id',10000);

Everytime the animation completes, it launches the function again and into infinity.

I didn’t forsee this would be problematic but I have heard that this is not very good and well, my site is now crashing after some time it seems.

Is there a way to do endless loops like this in a more stable manner? It seems a bit bizarre that simply moving a 9kb png file from the top to the bottom of the screen over and over again is a strain on system resources. Whats the issue and how do I approach this better?

  • 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-30T23:37:02+00:00Added an answer on May 30, 2026 at 11:37 pm

    Your code is a recursive algorithm and may crash when then fill up the code stack of the javascript machine of the browser. You can use a different approach based on timer to achieve a continuous loop.

    You can start from this example : http://www.irengba.com/codewell/

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

Sidebar

Related Questions

I have some elements inside an UpdatePanel which may or may be displayed, depending
Debugging experience http://www.dmhermitage.org/wtfborders.png This is making me want to kill myself. I have some
I have some ASP.NET web services which all share a common helper class they
I have some C# / asp.net code I inherited which has a textbox which
I have developed some reusable android component which is basically a class . This
I have some images in png format, I am wondering whether there are .net
It is the code: self.view.backgroundColor= [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@yourimage.png]]; My yourimage.png have some space
I have some .src files, and I want to render ONE .png file given
I have some weird problem in rendering some xhtml in IE 8 http://img709.imageshack.us/i/scrj.png/ .
I have some large .png (.jpg, ...) files that require pretty much a full

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.