Hey, I just set up my own webserver and the pages load fairly slow. I was wondering how I could get them to load faster so that people are sitting there forever. BTW, my pages aren't that involved (I don't think) that they should be loading as slow as they are.
Copyright © 2024 Q2A.MX - All rights reserved.
Answers & Comments
Verified answer
The pages probably get slower, for you are using scripts to display them (my guess is PHP). Static content (plain HTML files) get served lightening fast, while PHP scripts have to be interpreted and executed by the server every time you launch a request.
Caching will improve speed a lot (meaning, you don't have to execute the scripts all the time). But of course looking in to the code itself will help you most. For some reason, it's slow. Find the cause and patch it.
Apache can be tweaked as well. This takes quite a lot of time and a lot of trial-and-error.
There are many documents online regarding optimizing both PHP and Apache. I've put one of them in the source list below.
It depends on how fast of a connection you have. Most regular ISP's have slower upload speed, which is how data goes from server to you. This will make it slower for the page to load. A good tip is to make the home page very simple, but have a button or link to the full page. Also, use high-compression jpg files if you don't need really good quality images.
Look at the log files of all files being served. Look at the size of each file and add the total bytes for a page load. Typically, some people keep their image sizes huge, this would be the first thing to look at.
Where is the web server located? If you've set up a server at home then the upload speed is typically slower than the download speed. You can use this tool to test your download and upload speeds: http://www.speakeasy.net/speedtest/
If the server is hosted by your ISP, then chase it up with them.
choose for host-degree devoid of 2d concepts! Their help is amazingly outstanding! amazing help and amenities, i've got in no way experienced something like it till now.| you're able to desire to truly take a seem at host-degree to host your web content their help have constantly been quite a exhilaration to handle. outstanding counsel, low fee expenses, outstanding, not something to stop you haha ;).}
Who's your host? Maybe they are having some problems or maybe its your internet connection?