• paa1605

    (@paa1605)


    Hey guys,

    Having become acquainted with WordPress about a year ago i set about learning the ins and outs of this amazing bit of software. I wanted to develop my own theme and having just completed it i am about to apply it to a small site that will be used for a bit of affiliate marketing. The site is https://www.ladiesgolftrousers.co.uk.

    So far i’ve just added some dummy content and applied to some merchants so they can see how the site will look and feel before i start adding some unique content in the form of product descriptions. My main problem however is that the home page takes too long to load. The internal pages are usually much faster, so after doing a bit of research and a few tests i made some changes;

    1. I cleaned up the header and footer code by removing all the unnecessary php such as the calls for the stylesheet, bloginfo description etc and replacing it with html.

    2. I installed the w3 total cache plugin and minified the css and javascript, enabled page cache, enabled browser cache and generally followed some excellent advice i found at https://zemalf.com/1443/w3-total-cache/

    3. I optimised the database and cleared the post revisions.

    4. I removed the <?php get(‘header/sidebar/footer’); ?> for the home page and instead copied and pasted the output html code.

    All my images are in either gif, jpeg or png format so i didn’t touch them as i presume this is ok? I only have 11 plug-ins running. After doing all this i ran a report from webpagetest.org and got the following results:

    https://www.webpagetest.org/result/110208_F7_6501fcf597d1fa18b3045d428befa4d6/

    You can see that the site received a speed test score of 80/100 which i presume is pretty good. The waterfall graph shows a very long wait for the ‘time to first byte’. Nearly 4 seconds! Im not a computer expert so im not entirely sure what this means but from doing a bit of research it appears to be the response time from the database. Could it therefore be a case of poor hosting? I use a linux shared server from Fasthosts and pay about £6 per month. I also noticed that the ‘keep-alive’ grade that my site received was an ‘F’. Could this also be linked to a poor server?

    Since applying the above changes the site has improved slightly, but is still no where near as fast as i would hope for. I ran further tests from the firefox page speed plugin and again received a healthy 83/100 score. What i cant understand is why these test sites are giving my home page a decent score yet this is not reflected in the user experience. The home page only uses a small amount of javascript for the central banner slideshow so that shouldn’t be a massive hindrance. The main problem seems to be the time it takes for the browser to access the initial database and begin the process of displaying the page.

    If anyone could offer some advice as to why this might be happening or ways to improve the page speed i would be extremely grateful. Thanks for your time,

    Patrick

Viewing 5 replies - 1 through 5 (of 5 total)
  • Alwyn Botha

    (@123milliseconds)

    >>>The waterfall graph shows a very long wait for the ‘time to first byte’. Nearly 4 seconds! Im not a computer expert so im not entirely sure what this means but from doing a bit of research it appears to be the response time from the database. Could it therefore be a case of poor hosting

    Yes, could be 200 ms it you had a fast host.

    Up till the first byte is received NOTHING happens in a brower … your visitors just stare at nothing, waiting.

    >>>I also noticed that the ‘keep-alive’ grade that my site received was an ‘F’. Could this also be linked to a poor server?

    No thats an Apache setting; easy to fix

    >>> The main problem seems to be the time it takes for the browser to access the initial database and begin the process of displaying the page.

    Perfect; go right to the top of the class.!!!

    >>>>
    What i cant understand is why these test sites are giving my home page a decent score yet this is not reflected in the user experience.

    Unfortunately 100 % score does not mean FAST.

    YOu can have one javascript taking 20 seconds and still have a 100 percent score.

    Look at the 400+ tests 1 did ; some themes load in 123 milliseconds or less ??

    https://www.123milliseconds.com/

    Having your many tiny jpgs loading one after the other is your main other problme; it they loaded parallel your load tim ewill be shorter.

    Thread Starter paa1605

    (@paa1605)

    Thanks for the reply, much appreciated.

    Do you therefore think that my priority is to switch to a different host? I can’t afford a dedicated server so it would have to be shared hosting again. Are there big differences in performance from company to company?

    Also how do i change the Apache settings so that my ‘keep-alive’ time is changed and how do you load images in a parallel fashion?

    Thanks for your time,
    Patrick

    Alwyn Botha

    (@123milliseconds)

    https://httpd.apache.org/docs/2.0/mod/core.html#keepalivetimeout

    w3 total cache plugin should eliminate that seconds completely since it will serve pre-generated / cached pages and not regenerate it; that takes time.

    NO dedi server required.

    Alwyn Botha

    (@123milliseconds)

    >>>how do you load images in a parallel fashion?

    SPECTACULAR help and screencapture righty at the bottom.

    https://code.google.com/speed/page-speed/docs/rtt.html

    Thread Starter paa1605

    (@paa1605)

    Cheers for the help, i’ll look straight into it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Why is my site so slow?’ is closed to new replies.