Re: loading tree images
Matt Raible <lists-T7vlz3gD7BdF/EzeuO4KJwC/[email protected]>
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
Since this is the same image - it should be cached on the users browser. Matt On Aug 17, 2004, at 9:48 AM, Lucia Sheehan wrote: > > > > > I'm using struts-menu to display a tree using the ListMenu Displayer. > However, I'm finding that there is a big hit on loading the tree > because > the images are being downloaded from the server each time the menu is > painted. On load of the menu, each plus and minus gif is loaded and > this > is done again when the tree is expanded. The images are referenced in > menuExpandable.js and menuExpandable.css. > > I've tried to do this using javascript - e.g. (new Image(80,20)).src = > "images/plus.gif"; > Has anyone any idea how to preload these images so they are retrieved > from > the server only once? > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > struts-menu-user mailing list > struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/struts-menu-user ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285