Skip Navigation
How do you get over the fact that not everyone will like you?
  • Wish I could help with the strategy. I don't deal with this in any way, I genuinely don't care if someone likes me or not. I actually don't think about it. I understand this can be a problem and mess with one's confidence in a situation like yours, but the numbers speak for themselves - you are in a good place.

  • General Programming Discussion @lemmy.ml McOkapi @lemmy.ml
    Make puppeteer wait for a page to fully load

    Taking accurate screenshots with Puppeteer has been a real pain, especially with pages that don’t fully load when the standard waitUntil: load fires. A real pain. Some sites, particularly SPAs built with Angular, React, or Vue, end up half-loaded, leaving me with screenshots where parts of the page are just blank. Peachy, just peachy.

    I've had the same issue with waitUntil: domcontentloaded, but that one was kind of expected. The problem is that the page load event fires too early, and for pages relying on JavaScript to load images or other resources, this means the screenshot captures a half-baked page. Useless, obviously.

    After some digging accompanied by a certain type of language (the beep type), I did find a few workarounds. For example, you can use Puppeteer to wait for specific DOM elements to appear or disappear. Another approach is to wait for the network to be idle for a certain time. But what really helped was finding a custom function that waits for the DOM updates to settle (source). It’s the closest to a solution for getting fully loaded screenshots across different types of websites, at least from what I was able to find. Hope it will help anyone who struggles with this issue.

    1
    How often do you use AI tools in a day
  • I use the ChatGPT Google Sheets extension pretty much every day to create tables, charts, and all kinds of lists for various clients and projects. The results are excellent, and it saves me a significant amount of time.

  • The growing abuse of QR codes in malware and payment scams prompts FTC warning
  • I agree, people don't really pay attention or bother to read about stuff like How to check if a QR code is safe. Honestly, I've been dealing with QR codes for quite a while, and I still occasionally spend time looking things up, reading about quishing, and whatever new scam/term appears.

  • InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)MC
    McOkapi @lemmy.ml
    Posts 1
    Comments 8