[SOLVED] External random image (imageblock) takes too long to load. Possibility to pre-load?
|Posted: Wed, 2005-10-05 13:41|
I use the @readfile(...) method to place a random image on my website's homepage. However, it makes the page very slow (2-5 sec) to load (test yourself) (and since I have the image in the sidemenu -by design-, it shows on every page, which slows down considerably the navigation of the entire site).
Hence my question: is it possible to pre-load this image to reduce load time?
I am not really sure whether this would be possible (from reading previous post on this topic, I understood that the @readfile() command loads the entire G2 framework, which takes time)
But I was thinking about a workaround: the external imageblock php command would not display the image, but would save the image in a specific (fixed) location (e.g. \images\g2randomimg.jpg), and the link to a corresponding .txt file (so you can put that command at the end of the page)
So the way it works is: