this post was submitted on 08 Jul 2026
10 points (91.7% liked)
Programming
27651 readers
104 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Are you using waitUntil? You need to adjust what it's waiting for. Networkidle2 works great for simple pages, but if there's a lot of BS that never stops firing then it may never conder it loaded. I use domcontentloaded plus a hard coded delay.
Write a quick queryselector and have it click accept if it's there.
Not much you can do about that. Chrome just sucks. Any alternative is either going to use just as much ram, or not be representative of the real world. So you're stuck with Chrome wearing different hats. Not using shitty hardware for it is amazing. We have some hosts that are almost 15 year old hardware and they're painfully slow. But put on something modern with an ssd and it's pretty fast. You just have to keep memory under control to keep it relatively cheap. You could probably buy an old laptop and run it as a server for about a years worth of decent VPS costs. As long as it's got an ssd it'll be fast enough for this.