I am writing a javascript application using the File API in Google Chrome. I am loading the files with the readDataAsURL method. I only need one file loaded at a time. So, each time I load a file, it gets added to memory and after a short while, the one tab will be maxing out my memory. Is there any way to unload the files when I am done with them before I load the next?
Share
There’s a bug in Chrome (http://crbug.com/36142) where the memory is not releasing after switching the
img.srcmany times.Try using
createObjectURL(). See my response here:HTML5 File API crashes Chrome when using readAsDataURL to load a selected image