Hi,
I have a project in which I need to dynamically generate thumbnails for web galleries and have created a caching system which works fine. My problem is that it takes a few seconds for each thumbnail to generate so I show the user an 'image loading' picture. This image is outputted from the script and then it starts to generate the icon and saves it to the cache.
However, this can't work properly unless I can get the PHP script to tell the users browser that the page has finished loading, otherwise there is an equally long delay as the script generates the real icon.
I thought about getting the PHP script to create a new http request to its self, but this wont work. Neither do location headers, redirecting where the user looks.
What I'm really looking for is either a way to generate the thumbnails faster, or a way to tell the users browser to stop waiting for more information.
Thanks,
Ben
I have a project in which I need to dynamically generate thumbnails for web galleries and have created a caching system which works fine. My problem is that it takes a few seconds for each thumbnail to generate so I show the user an 'image loading' picture. This image is outputted from the script and then it starts to generate the icon and saves it to the cache.
However, this can't work properly unless I can get the PHP script to tell the users browser that the page has finished loading, otherwise there is an equally long delay as the script generates the real icon.
I thought about getting the PHP script to create a new http request to its self, but this wont work. Neither do location headers, redirecting where the user looks.
What I'm really looking for is either a way to generate the thumbnails faster, or a way to tell the users browser to stop waiting for more information.
Thanks,
Ben