Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 24, 2012, 05:45 AM   #1
gaurikolarkar
macrumors newbie
 
Join Date: Apr 2012
Memory continues to increase when loading images to Webview

I am loading HTML file which loads images using Javascript files to WebView. Every time when I load html file to Web view it shows me some memory increased in Activity Monitor. Even, when I release Webview then also it does not release the memory.

I am not caching the resources in Webview. But, when I used instruments to analyse the memory , it shows me images resources are cached in memory which does not get released.

I tried to load same HTML files in Safari browser, I found the same behavior.

Can anyone please guide me where I am missing? How can I optimize the memory loading to WebView?
gaurikolarkar is offline   0 Reply With Quote
Old Apr 24, 2012, 07:24 AM   #2
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by gaurikolarkar View Post
I am loading HTML file which loads images using Javascript files to WebView. Every time when I load html file to Web view it shows me some memory increased in Activity Monitor. Even, when I release Webview then also it does not release the memory.

I am not caching the resources in Webview. But, when I used instruments to analyse the memory , it shows me images resources are cached in memory which does not get released.

I tried to load same HTML files in Safari browser, I found the same behavior.

Can anyone please guide me where I am missing? How can I optimize the memory loading to WebView?
Webview _is_ optimising it. The idea is that available RAM is free, but downloading images is expensive. The fact that it behaves the same in Safari should be a hint.
gnasher729 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Safari not loading any images please Help luke71933 OS X Mavericks (10.9) 4 Mar 24, 2014 01:31 PM
Twitter images not loading qfactor Mac Applications and Mac App Store 1 Mar 21, 2014 09:15 AM
how to get notified when webview finished loading DavidBlack Mac Programming 4 Jun 28, 2013 03:07 PM
Browser Images from some websites Not Loading scrimshank MacBook Air 1 Nov 17, 2012 08:24 PM
Images not loading runveryveryfast iOS 6 2 Sep 23, 2012 08:22 AM

Forum Jump

All times are GMT -5. The time now is 06:17 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC