Local is painfully slow

What issue or error are you experiencing?

Local is painfully slow on my Windows 10 installation, and it never used to be this bad. It’s so slow within the Wordpress admin that it’s completely unusable with it taking minutes to load an admin page or perform an action. It’s only the Wordpress site running via Local that is slow and nothing else.

I have tried everything on the following page: Troubleshoot: Performance Issues - Local


What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

I’ve noticed that the issue seems to be centred around the “load-styles.php” file when checking Chromes network log - you can see on this instance that takes over a minute to load a simple wordpress post in the admin:


System Details

  • Local Version: Version 8.3.1+6650

  • Operating System (OS) and OS version: Microsoft Windows 10 Pro | Version:10.0.19045 Build 19045


Local Logs

Local Log is attached here:
local-lightning.log (172.2 KB)

Does anyone have any suggestions as to what might be causing this?

Hi @mattrosebcc

If the issue is with this specific site and that load-styles.php file, then there are a handful of common culprits you could check:

  • You could try boosting memory. We have steps for that at the bottom of the performance help doc above.

  • Try disabling all plugins and see if it speeds back up. Then you know it’s a plugin issue and you could try turning them on one at a time to see what happens. Or you could try using something like Query Monitor or this plugin to see if that helps narrow things down.

  • If you swap the theme to a default theme does the site speed back up? That could show a theme conflict at play.

  • Are there any overly large tables or bloat in the database that could be optimized?

I didn’t know where else to post this so I thought I’d leave it here in the hopes that it might help someone else.

I found something simple that was slowing my LocalWP dev environment after I had wasted hours looking for ways to speed up MariaDB and LocalWP - thinking it had something to do with them.

The main culprit in my Windows dev environment turned out to be 3 small fonts (characters) from Font-Awesome (they were the logos for Facebook, Instagram and X). They were taking over 13 seconds to load…

Just these 3 icons/characters meant that every page took almost 20 seconds to load…

The code loading the font-awesome fonts was in footer.php and looked like this…

After uploading replacement PNG images for the font-awesome icons/chars, the new code looked like this…

And the page loads dropped to less than 6 seconds.

i7 SNAG- 5-5-2024 2.54.03 AM

Now that 6 seconds may be partly due to LocalWP running a little slow on Windows, as this server execution time indicates…

i7 SNAG- 5-5-2024 2.40.08 AM

…but 5-6 seconds is a lot better than 20 seconds per page load.

If I find more to tweak I’ll let you know.

Two of those icons are in dashicons and would load very quickly.

What I’m suggesting is you somehow included the downloaded resource and not go off to the internet to fetch an icon you could easily include in your code.

1 Like

We had a couple of users come in recently reporting slowness issues on MariaDB specifically that our Devs were able to replicate.

Feel free to upvote or comment on the Bug here:

Here are some performance tips from the team at MariaDB - https://mariadb.com/kb/en/configuring-mariadb-for-optimal-performance/

2 Likes

Thank you @jim_hubbard! I cross-posted this over to that other thread in case it helps others as well.

2 Likes