Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Cancel Image Requests?
1 replies. Latest Post by jasonxz on October 11, 2007.
(0)
jbaysingar
Member
72 points
33 Posts
10-11-2007 5:19 PM |
Is there a way to cancel a pending image request? Here's my scenario...I dynamically add a series of images to a Canvas with remote HTTP URLs. If my control changes state, then I clear the canvas and request a new set of images. The problem is -- if the control changes state before the first set of images are loaded, the requests for the first images stay in the browser's queue (even though they are no longer in the Canvas). So, the requests for the new images get queued up behind the original requests, and have to wait for the first set to finish loading before they can start loading. This causes an obvious, and unnecessary delay (since the orignal images are no longer needed).So.... Is there a way to cancel the original set of requests so that the new Images begin loading immediately?Thx in advance...J
jasonxz
Participant
1752 points
530 Posts
10-11-2007 10:12 PM |
Well, there are 2 things you can try.