[Webkit-unassigned] [Bug 6656] Image loading continues when IMG elements or Image JavaScript objects are removed

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 26 08:27:05 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=6656





--- Comment #11 from lbzwischenbrugger at fhstp.ac.at  2010-02-26 08:27:04 PST ---
Finish loading or not


If the src attribute of an image is changed by javascript
a new Image will be loaded.
In some cases the previous loaded image is not fully loaded. It is a "nice
idea" to complete loading for caching reasons.
But there are some problems with that.


Loading continues also when an image Element is removed from
DOM tree or an Image object is deleted.


Dealing with partly loaded Images
-----------------------------------
I see 3 possibilities

A.) Continue loading even if the image is not requested anymore

WebKit Browsers continue loading. Firefox stops loading.
If the image is loaded to 99% it's cool to continue loading for cache.
If it's many times only 10% it makes the app slow.


B.) Stop loading, dump the partly loaded images

If the programmer needs to preload images he/she can do that with an Image
Object.
It's also possible to create an Element with tagName "img" an, set the src
Attribute and
set the style to display:none. If the images is needed change display property
to "" or "inline" with javascript;


C.) Stop loading, save the partly loaded images. If the image is requested
again load the rest of the image. 

see:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
14.16 Content-Range

That would be cool if it's really fast code.
I don't knoww if web servers loose speed with in aktive
"Content-Range" http header. This is als used for 
large file downloads.

More details on this header:
http://www.west-wind.com/WebLog/posts/244.aspx


WebKit Status:
--------------
There is no possibility for programmers to abort loading an image.
Webkit has a really fast image rendering and zoom engine. 

For web applications (browser maps) that deal with lots of images 
it's good to have excellent image rendering.
However, the user will not be really satisfied - because of this
image loading issue.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list