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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:13:22+00:00 2026-06-03T05:13:22+00:00

We are working on HTML5 application for mobile devices(Android + iOS). But the great

  • 0

We are working on HTML5 application for mobile devices(Android + iOS). But the great problem is memory consumption – used memory amount is rising very fast and app become laggy.

What are the best practices, hints, tools, solutions, etc. for fighting with memory leaks in HTML(JavaScript) applications ?

P.S. We are targeting only on Webkit browsers

  • 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-03T05:13:23+00:00Added an answer on June 3, 2026 at 5:13 am

    There have been some really great articles on this subject recently. There are some really surprising sources of object creation that don’t really catch your attention unless you’re tuned for it. Typically, the problem isn’t the memory use, it’s actually the garbage collection cycles required to collect the memory the app is slowly leaking.

    This article is the best I’ve read on the topic recently: https://www.construct.net/en/blogs/construct-official-blog-1/write-low-garbage-real-time-761

    As far as tools to combat/diagnose the issue, Google Chrome’s Speedtracer comes to mind. Of course, tuning for Chrome doesn’t guarantee tuning for all browsers, but most of the things that result in object creation in Chrome are common to the JS spec as it’s implemented by all the browsers.

    One important thing to consider is that RAM use and video RAM use are not the same. One best practice is to determine which portions of your UI are being hardware accelerated and to make sure they’re small (i.e. fit on screen all at once). If you have huge scrolling portions of the screen hardware accelerated, you will get GPU tearing/tiling and laggy scrolling. You can detect this in part using the iOS simulator. This article covers the idea briefly: https://web.archive.org/web/20131224004217/http://devinsheaven.com/turn-your-iphone-wacky-and-make-your-iphone-application-better/

    Lastly, there are a bunch of really common memory leaky patterns in JavaScript that every engineer runs into from time to time. IBM has a good list of them. I can’t post more than two links because I’m a n00b, but you can google for "Common JavaScript Memory Leaks" and it’s probably the first result.

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

Sidebar

Related Questions

I made a simple android application in phone gap,jQuery mobile, HTML5 with a simple
I am working on a cross platform mobile application using phonegap (html,javascript) problem is
I am working on a Mobile HTML5 Application. I have a field of type=number
Im working on using HTML5 persistent storage on an existing application used for the
I am working on a JQuery Mobile application. Each of my .html files basically
I'm working on an html5 application built on CouchDB. I want to make sure
I am working with the sample Home application project on http://developer.android.com/resources/samples/Home/index.html I've added another
I'm an email n00b but I am working on an application that sends HTML
Hey all. I'm working on an application that was originally intended for HTML, but
I am working on building a HTML5 video player with a custom interface, but

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.