[webkit-dev] Cancel image loading in webkit browsers

Simon Fraser simon.fraser at apple.com
Wed Feb 24 07:49:18 PST 2010


On Feb 23, 2010, at 10:27 PM, Bernhard zwischenbrugger wrote:

> hi all
> 
> I'm working on a (openstreetmap) slippy map for iphone browser.
> http://lamp2.fhstp.ac.at/~lbz/beispiele/ws2009/iphonemap4/simple.html
> 
> At the moment I have a problem with cancel image loading.
> 
> Simple example:
> 
> <script type="text/javascript">
> document.getElementById("img").setAttribute("src","image1.jpg");
> document.getElementById("img").setAttribute("src","image2.jpg");
> </script>
> 
> Firefox does not load image1.jpg because it is not really needed.
> Webkit loads the image1.jpg and that is a big problem.
> 
> Here a page that shows the effect more detailed:
> http://lamp2.fhstp.ac.at/~lbz/beispiele/ss2010/webkit/
> 
> 
> Is there a way to cancel image loading in WebKit browsers?
> To change the src attribute does not stop loading -> slow map

The first step is to file a bug at bugs.webkit.org, with a simple testcase.

Simon



More information about the webkit-dev mailing list