Do you have any js-based analytics or advertising etc.? These can really slow down sites - I had to remove some of them from mine.
Is the slow load experienced on every computer or on every browser?
Have you pruned the page to various stages of undress to see which component is causing the delay? As prev. mentioned,loops (especially nested loops) may be the cause of your woes.
Do you have hundreds of people viewing your site at any given time? Is your server up to the task?
You could time certain procedures with microtime(), to give you a list:
$start = microtime(true);
//YOUR PROCEDURE e.g. loop
$end = microtime(true);
$elapsed = $end - $start;
echo "Procedure 1 = {$elapsed} seconds";
//repeat as necessary
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
Have you tried renaming htaccess to something else and then testing the page? I notice you're not in any rush for this!
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
Your .htaccess file may still be there if you've just uploaded another file called htaccess. I was thinking of renaming it to, say, htaccess.txt in situ, i.e. on the server in your FTP view. I don't know enough about htaccess to be able to advise you, but it seems like the obvious culprit if you've got nothing else in your files that could account for the slow loads. Have you contacted your host to ask them for advice? It could be that you're on a shared host with some naughty people who are serving mp3s and videos and slowing everybody down.
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
I checked your site and when viewing it, the page is almost a Megabite in size. I would suggest using the flush() function immediately after every javascript file is included.
cwarn23
Occupation: Genius
3,033 posts since Sep 2007
Reputation Points: 413
Solved Threads: 259
Thank you for your help.
why do I have to use flush() in every javascript file. What if I put it at the end of all the files.
Coolmind
Well the flush() function sends the currently processed information to the browser instead of waiting for the entire page to be processed. And these flush() functions need to be in the main php file which the user is viewing from the url. It can be handy for very large pages like yours and although the overall result will take just as long to load, the user can see parts of it at a time as it is being processed if the flush() function is being used.
cwarn23
Occupation: Genius
3,033 posts since Sep 2007
Reputation Points: 413
Solved Threads: 259