• Hi,

    I hope someone will be able to shed some light on my situation. I have a WooCommerce installation that has what I find to be a slow initial page load time. Due to caching and the use of CloudFlare all subsequent loads of the page after the initial load are quick.

    I am using Shared Hosting and I was wondering if this could be the reason that the initial load time is slow (usually around 3-5 seconds). The main file that is causing this load time is the admin-ajax.php file (between 2-3 seconds).

    Using Google PageSpeed the main area for improvement is “Reduce initial server response time” which is why I am thinking that my issue is related to my hosting provider.

    My hosting provider is convinced that the issue is related to a plugin and/or theme but I do not think that is the case. Any insights on this, I have exhausted all avenues and I do not really have any inkling as to what could be causing my issue.

    Thank you, any help is appreciated.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 16 through 30 (of 32 total)
  • Anonymous User 16358193

    (@anonymized-16358193)

    The two searches came back very quickly actually… a couple of seconds each.

    Assuming the first one was supposed to say ‘no matches found’? Second one returned a product.

    Hope that means it’s fixed!

    Thread Starter jbaranello

    (@jbaranello)

    When the data is loaded, the searches are performed quickly. Where I am seeing lagging is when the initial page is loaded it takes a while before the little circle in the browser tab (indicating the data is still loading) to go away.

    From what I understand from the developer is that when the page is loaded the query is executed and the data is loaded for you to search.

    They were both supposed to return a product so I think something went wrong lol.

    Can you please try again and let me know?

    Thanks

    Having the same issue with woocommerce, just for non cached pages (logged users)..

    Initial page load is unacceptable, either after 5-10min of inactivity. After that first server response, page load is back to normal, and is really fast almost like Cached pages (non logged users) which have score on gtmetrix 98/89.

    Using NameHero VPS.

    Anonymous User 16358193

    (@anonymized-16358193)

    My issue seemed to be due to many slow queries in the end. I used query monitor to note the slow queries and they seemed to be coming from another plugin I was using ‘Search & Filter Pro’. It was querying the database for woocommerce products.

    I switched my server to Skystra and now the query speeds are much better. I still have about 1 second of load initially, but this is much better than before.

    I would recommend trying these guys. It appears to me some hosts do throttle speeds after inactivity.

    Maybe first try Query monitor to see what slow queries are causing the page to be slow and go from there.

    No there is not problem with slow queries in my case, we always use lightweight themes and it is happening to all of our woocommerce sites, with siteground also, not just with namehero hosting.

    Page load are perfect, just initial page load is struggling (2-5s of delay) for non cached pages. Second page load of non cached page is really fast, almost as cached one, but after 5-10mins of inactivity it is happening again and again..

    • This reply was modified 4 years, 5 months ago by rkoms.
    • This reply was modified 4 years, 5 months ago by rkoms.

    Hi,

    I have the exact same problem on my website. GTMetrix, Pingdom scores are good, but initial load after a couple of minutes of inactivity is 20 seconds or more…

    Do you already have a solution of this?

    The Website

    Anonymous User 16358193

    (@anonymized-16358193)

    I changed my host which helped slightly with slow queries but no definitive solution for me yet. Still some slight delay after inactivity for me.

    I tried your site, and it loaded in about 8/9 seconds. It hung for ages on ‘resolving host’ (seen in grey at bottom left of chrome) then loaded fine after that stage and subsequent tries.

    Needs more investigating I think, sorry I couldn’t be of more help. ‘Resolving host’ would be a good error to research.

    Thread Starter jbaranello

    (@jbaranello)

    I changed my host as well and it seemed to help slightly as well. I am still working on this but havent resolved it yet.

    Sorry I couldnt be more help.

    Hi
    workaround solution below

    I’m having the same kind of issue with my WordPress sites:
    Initial site load is very slow (20-30+ seconds), after a certain period of no activity on the site. Looks like the ‘reset’ time is about 1 hour.
    It seems to be the TTFB has a lot of waiting time. The actual load of the content is no problem.

    I haven’t been able to identify the cause of the issue yet. Even with a completely empty installation of WordPress (standard theme, no plugins), the load speed is terribly slow.

    Communication with my site hosting hasn’t found the cause and solution for it. The hosting company assures me there is nothing wrong with their method of hosting, and no issues on my multiple domain-accounts with them.

    We did find a workaround solution:
    Make a Cronjob that visits the site periodically. So every 15 or 30 minutes. This would ensure there is always site activity, to keep the site speed acceptable.
    We made this Cronjob on my cpanel account: “wget -q -O- (website url)” for each 30 minutes.

    Hope this helps, but i also hope we’ll be able to identify the real cause and find a solution for that, instead of a workaround.
    cheers!

    @troy99

    1. STEP for much better performance
    I have deployed new projects on NameHero host…

    2. STEP
    Was created a cron job to visit a home page on every 2 or 5 minutes.

    ((:

    me 2 precisely the same problem!!
    CSS optimization in Litespeed appears to make it a lot better

    Anonymous User 16358193

    (@anonymized-16358193)

    @freduce86

    Thanks for the insight. I think there is most likely some server settings that they don’t want to admit causing such issues. Some kind of throttling / prioritisation of sites with frequent visitors. Especially if you say this happens with a fresh install of WordPress. TTFB was my issue too.

    I do think this has been fixed with a change of hosting provider for me. But I’m still monitoring.

    One thing to make sure you’re not doing which I did at one point was checking the TTFB via the browser and not GTMETRIX. This gave me an unreliable result because if I was logged in as admin on my WordPress site, the TTFB would be expected to longer while it loaded admin assets in the background.

    Workaround is an okay solution for now though, thanks for sharing.

    Cheers

    This issue has been happening to me forever.

    HTML sites load great

    Wordpress sites load great

    Woocommerce sites… load great after initial load time of 5-6 seoconds…

    Inital load is terrible.

    100% woocommerce fault.

    Not server, my server is fully optimized, also theme is barebones, installed WP Rocket and CloudFlare…. still doesn’t help.

    I think it has something to do with ajax calls… however woocommerce needs this to track the cart contents. Pretty sure this is the culprit.

    Please help.. woocommerce what is the solution here? Out of the box this should work… i know its happening to other people as well…

    This is very hard to debug since after the page loaded the site runs great.. so its hard to tell if whatever changes you made fixed the issue.

    I dont think they solution is to cron job visit your homepaged every 5 minutes.

    I have noticed that on different browsers or computers, or networks… even if I load it up on my computer it will still be slow on some other device right after I load it up… so cron job only works locally… i asusume?

    Is there a way to defer the ajax to load after the page loads?

    Please help… so annoying I have 10 clients on woocommerce with different themes etc… all stink at loading… I tried so many things…

    -O

    This could be the fix for slow load times ??

    https://nida.tools

    Please someone should help, woo commerce website initial loading is really taking too long. I’m getting up to 15 seconds here and it’s frustrating

    Pls anyone with a solution please

Viewing 15 replies - 16 through 30 (of 32 total)
  • The topic ‘Slow Initial Page Load’ is closed to new replies.