NameSilo

[Resolved] Slow loading

Spaceship Spaceship
Watch

SiKing

Registered MemberEstablished Member
Impact
6
Slow loading

Hey. I was just wondering why my website http://www.beenplaces.com takes so long to load. The page loads fine but the images take a while to render. They're not exactly huge file-sizes. Well not all of them anyway.

Is there a simple(ish) PHP script that can resize the image in real time, rather than storing thumbnails for each image. I'm aware of the JavaScript code which loads the images before the page but the images on the homepage are liable to change constantly so I won't know the filename each time.

Thanks
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
There are a few out there miseria, most can be found through using google and i believe there is even a working example on the php.net GD pages.

To start you off here's an example search ;)
http://www.pixel2life.com/search/10/thumbnail/1/

Should find something there :)
 
Last edited:
0
•••
You can resize images in real time using PHP, although this would use a lot of server resources, as each time the page is loaded the server would have to create the thumbnails which is time consuming, unless you have some kind of caching enabled. You would be better of making thumbnails of each image either manually or a batch PHP script.
 
0
•••
Agreed with Lee, when you do make this script to automatically resize to thumbnail size, also output the thumbnail to a file and save it in say a cache file for that image name/id. That way the script could check if the cache file exists, if it doesn't, create it :) Saves a lot in loading times ^^
 
0
•••
Thanks very much for the help guys. I will look into that :)
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back