Programming in php: pre caching the second image from php script on newest questions tagged php – Stack Overflow
I have my html like this:
<html>
<body>
<script src="http://example.com/a.js"></script>
<img src="loading.gif" />
</body>
</html>
now I have a php script which outputs a png image.
What i want is to :
- Pre-load/Pre-cache the png image from the php script.
- When every thing is loaded(the page,images, external js,..) then i need
to call a function defined in a.js - after calling the function, I
need to display the preloaded image (replacing the loading.gif)
How do i achieve this? Please help
See Answers
source: http://stackoverflow.com/questions/11924157/pre-caching-the-second-image-from-php-script
Programming in php: programming-in-php
Recent Comments