1

Any tips to speed up wordpress site. I have googled and tried as many solutions I can except adding cdn. I have minified images, html, css and js. I have used caching on the server with litespeed cache. There are not many plugins on the site.

The plugins installed are elementor, litespeed, orbit fox, wp-optimize, updraft plus and wpforms lite. The site takes around 4 to 5 seconds to fully load. I am doing this for a releative(don't worry he is sane and I am doing pretty simple stuff for him which is simply not worth charging). I cannot use cloudflare cdn since they need nameserver access and the hosting service used is hostinger which have put a lot of dns records which I don't understand and don't wanna mess with unless it is the last option.

Comments
  • 0
    Did you try monitoring network requests? Something must be stuck there.
  • 0
  • 0
  • 1
    @Fast-Nop Not possible he has already paid 1 year of hosting. I did build him a hugo site a few months before this but I do not recall what happened but in the end it was decided to use wordpress. I fould try to make the site stagic wirha wordpress plugin or building a gatsby site with rhe wordpress api. Thanks
  • 0
  • 0
  • 1
    Have you measured what takes so long?

    I'm sure there are WordPress profilers, and for the client side use Lighthouse (included in Chromium based browsers, or Google's page speed insights (https://developers.google.com/speed...).
  • 0
    It's easy, really. You just open DevTools, Network tab, reload page and all requests are on finger tips. If you get what that long request means, then super! Otherwise, my first guess is to google domain to which it leads, maybe someone figured out the problem before.
  • 1
    @sbiewald @vintprox Thanks. I figured it out. For some reason the https redirect was taking 2 seconds, I will look into that. Also I need to resize the images since they take 2 seconds to load even after minification
  • 1
    @Sony-wf-1000xm3 Lazy loading the images may help, and don't forget to use a permanent redirect for https so it doesn't happen on second visit.
  • 1
    @homo-lorens The redirwdt is a permanet redirect. I will also look into lazy loading. Thanks
  • 1
    @Sony-wf-1000xm3 Also, check that local resource links (images, scripts, stylesheets) are relative, not absolute. If they start with http://, then the first visit will have all of them redirected first. That's a problem with a lot of WP installations.

    The quick fix for an existing site with many such botched up resource links is using Content Security Policy headers, in particular "upgrade-insecure-requests".
Add Comment