My web app is a photo viewer, which gets 6 photos once from my web server and shows these photos in one page. The user can tap "next page" button on toolbar to fetch the next 6 photos. I use mwl.insertHTML() to replace the old photo page with the new.
But after tap and tap "next page", about dozens of times, the app crashes with "out of memory" error. I think whether the html and photo images was not released when mwl.insertHTML() called frequently? If so, how can I release the memory before mwl.insertHTML() was called? Or, there are other problems?
Please give me any help.