Preloading Images not working correctly on Firefox
105 views
Skip to first unread message
mr.nice
unread,
Apr 8, 2008, 10:36:21 AM4/8/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Hey!
I have written a photoalbum which fades between the pictures.
Everytime a fadeover has finished, the next and the previous picture
(one of them is the last picture, of course) will be loaded into a non
visible Image added to the Panel...
Everything works fine, but on my Firefox, it doesn't preload the
images
at all!
I hope someone can help!
obesga
unread,
Apr 8, 2008, 12:07:48 PM4/8/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Try to use Image.prefecth
As gwt-javadoc says
public static void prefetch(java.lang.String url)
Causes the browser to pre-fetch the image at a given URL.
Parameters:
url - the URL of the image to be prefetched
mr.nice
unread,
Apr 8, 2008, 12:11:24 PM4/8/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Web Toolkit
Thanks for the information!
That's probably what I am looking for.
Anyway, I it works now! Don't ask me why...
Probably, Firefox's chache was not reloaded
or something.
But if I wouldn't use the Fade over effect
and its postEffect method -
I would have to use prefech...