'Gatsbyjs develop LOCAL HOST loads slow, 15 minutes slow
So, suddenly, gatsby develop gives me success in the VStudioCode console but, entering local host 8000 in the browser, the page loads my page SUPER SLOW! The background image of the site appears but the content doesn't. I'm too much of a beginner to understand how this is happening.
I attached a picture to show the chrome dev Tools network. It's crazy. 15 minutes for the webpack_hmr, even 1.5hrs at one point. I didn't have to wait that long but it shows it.
This is way beyond my skill level. The site is still super small, only pulling two pages from contentful cms.
What maybe caused this? No idea.
What did I do?
- tried installing @hot-loader/react-dom because my chrome console said it couldn't detect react-dom/hot loader
- gatsby clean to clean cache and public folder
Why would webpack_hmr be taking so long? What are these socket and polling things in the network I see so much of?
I'd appreciate any ideas or suggestions, i'm at such a complete loss.
Solution 1:[1]
There could be a lot of different reasons of it. I'll tell you about my case.
I'm using Gatsby together with WAMP backend. I had a huge access.log file on my local Apache server (> 14 MB). I've cleaned access.log and error.log files and the problem has gone.
PS. My Apache log files are here: c:\Apache\Apache2.2\logs\
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
