I have uploaded a web site on the server then I hav tested it on the browser but it is taking a lot of time to load its contents. I dont have anything heavy in the site, does anybody know any solution to overcome this problem??
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:
If the proccessor returns something silly like 1 then that might be an issue (these things can take allot of proccessing) but this wouldn't be the main issue.
Does your site finish loading or does it take soo long you give up? If this is the case AND the site software is Windows IIS then it could mean you need to configure IIS to accept PHP extensions.
Be sure that all images, style .css files and .js files load fast. Add some code to your index.php file to see <URL SNIPPED>server-side page generation time. Loading time, data transferring speed and page generation time are different things.
Last edited by peter_budo; Jun 17th, 2009 at 4:11 am. Reason: Keep It Spam Free - Do not spam, advertise, plug your website, or engage in any other type of self promotion.
Thank you for your help. I have tried renaming .htacess file to htaccess and I think the site is loading quick now. Actually my .htaccess file was hidden on my server.
I have just renamed .htaccess file to htaccess then upload on my server, any suggestion?
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.
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.