[webkit-dev] Cancel image loading in webkit browsers
Bernhard zwischenbrugger
lbzwischenbrugger at fhstp.ac.at
Tue Feb 23 22:27:06 PST 2010
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
thanks
Bernhard
More information about the webkit-dev
mailing list