What are the ways to reduce the loading time? I know 1. By reducing the image size 2. By Reducing Java script. I am not an expert! What are the other ways to reduce the loading time? Appreciate your reply! sandy
There are 3 elements that affect how quickly a page loads: 1) The overall size of the page taking into consideration all images, scripts, html etc 2) Speed of server(s) both for serving up content and processing any server side code - if you are linking to other sites such as google adsense/ analytics then it is the speed of all the servers not just yours 3) Speed of network - the full route from each server (see above) to the visitors PC There are some elements you cannot really effect, you cannot make a vistor upgrade from dialup to broadband nor can you make google add more servers to their farm (though you can choose not to use google) Reducing file sizes, particularly images is the easiest one to do. Make sure that all images used are necessary and cannot be achived using other methods like slices repeated or for buttons, a blank button image with text floating over it. Ensure your webhost is up to the job. Generally (though not always true) the cheaper the hosting the more sites they cram onto a single server and so the slower the site will be. There are tools to calculate how many other sites share your server but this is a bit of a false picture as sharing a server with 100 sites that are never visited is fine but sharing with 20 complex and poorly coded PHP sites receiving thousands of visitors a day starts to run into problems. If you have serverside scripting then make sure it is efficient. If you have anything hosted offsite ensure it is fast enough, if it isnt then consider the alternatives. On many sites the reason for slow completion of download often appears to be google analytics.
A few other methods: - GZip compression - Caching, esp. for images, CSS and JS - Using multiple images as a sprite, edit: by this I mean combining images, see my next post
- Use css as much as you can - Use div's & span's instead of tables - Set height and widths for all your images if you can - Eliminate as much white space as you can - Don't use html comments I.E. <!-- Something here--> - Optimize your css - Compress your css - Optimize your queries - Optimize your database That's all I can think of off the top of my head.
You can remove unnecessary javascript from the page, esspecially free tracking jsps takes too much time to execute.
But they serve a purpose. Speed shouldn't take precedence over being able to better debug or change your code. Besides, can you actually measure the difference between a page with and without comments?
I don't know why you would need them? If you're looking to really optimize your site you would remove them. You can't really measure the difference for just one users but if you have thousands of users online then every little bit counts even things as small as a html comment. I don't really see the point of them anyways if you could tell me what you use them for maybe I will see more of a point for them?
Have two sets of HTML, one for development and maintenance and another (preferably automatically generated) one that is optimised. It makes a very significant difference when you strip all redundant whitespace, comments, reduce class names, maybe even IDs etc. In fact, I'm surprised it is not done more often. Take Google's homepage for example, 1-2 character class names, little whitespace, and even not using quotes for attributes and shortening things with code like <center>. Guess it is laziness, it takes a while to implement a system but once it starts running smoothly, it is a breeze and pages end up being as little as, if not less than, half the size. I should have made it more clear. I meant "combining images into a sprite". Then using CSS background positioning to get each individual image from the sprite. Not always practical but there are cases where it is useful. http://www.google.com/search?css+sprites
Excellent. Thank you for your comments. Please look at my website below( "Your Profit Generating Work At Home Website"). This takes 25 seconds to load in my computer (broadband with speed 512). I think it is too much. When I checked the statistics I notice nearly 85% of visitors are staying only 0 to 30 seconds. This partly due to the loading time. I removed all the images and checked still it takes long time. Where is the problem? I believe that i will get a good response!! thank you. sandy
Well, I'm on broadband connection and it comes up pretty fast for me... yeah not everything gets loaded within the first 5 seconds but all the important stuff does... you just have a really big website. With lots and lots of little thingies. Little pictures, little boxes, little articles and links... Yeah if I were on dial-up I wouldn't want to sit around and wait for this site to load but I see the purpose of it; it covers a broad spectrum of stuff. I could quickly skim through the words and the headers and see whether there was anything I wanted to click on or not. If I were a new mom who was tired of only doing Baby Duty I'd prolly click on one of the Moms links. I suppose, if you really care so much about load time, that you take your one main page and break it down into more, smaller pages. That will defeat the purpose of all those flashy ads, but then again, they do seem to all be competing with each other (I'm talking about the text ads that sit in the middle of the page). I think you can just decide if you want to keep the One Big Page thing. Sites like amazon and speurders.nl somehow manage to cram a lot of crap on one page, but speurders is mostly a list of links, as they are a sort of ebay. I think their site is plain but does the job. You are trying to entice people to click on some one certain thing, so you are advertising many different things to see which of your categories you catch people with-- therefore you would need to keep images etc. Try looking at other sites with big clunky pages that seem to load faster, and check out their code. Remember that the big guys have big servers, even with the high traffic volume.
Your page is 109.74 KB in size which is large but not stupidly so. On my broadband connection (nothing special) it loaded in 4.406 seconds which is perfectly acceptable. Personally my main issue with it is that it looks like the typical scam "site" - a single overly long page, all links off "site", no actual own content, large mixture of coloured text/ highlighting/ weights etc
Thank you "Stomme" & "Astaroth" Thank you for taking your time to comment on my site. Yes I noted that it comes quickely in some computer but not in mine. "Asaroth" you mentioned that it's "looks like" a scam site. I believe it is a genuine comment. Yes I may have to remove some images. But I do not think any of the opportunities are really scam. I am still a learner! sandy
Unfortunately, too many scammers use phrases like "wealth creation." "Earn more with this (tool)" says the same thing, but just sounds more honest : ) Even if something is easy, simple, cheap, fast, and great, simply declaring that whatever you have is those things with yellow highlighter does tend to give a veneer of grease on things-- not your fault, blame the used-car salesmen, or the Multi-Level Marketers like Amway. Look at sites that people consider "honest" or "reputable" and see how they tell their potential customers that their product is faster, easier, simpler, better, and cheaper than the competition. Usually, simply declaring it once and stating clearly WHY does the job nicely. We're easier than Company B because with our product, you don't have to go through x to get y done... just click and go! ...or whatever.
It is an honest comment and wasnt an allegation that anything on your "site" is a scam. The problem is that you have followed exactly the same format as everyone else doing this type of "site" (scam or not) and so it is actually difficult from an end user to differentiate between the two. First of all consider actually having a site rather than just a single page. Secondly consider having some of your own actual content rather than just advertisement copy - will potentially help with your SEO too. Thirdly, look at "normal" websites and their lack of random colours/ fontsizes/ highlighter etc. It may well be that this is all wrong and the model for this type of site does work best in this format because there are people who dont realise that the MLM type scams exist however by having this type of site you will certainly alienate some of your potential market.