Toot

Written by Ruud van Asseldonk on 2025-01-02 at 21:56

The javascript ecosystem is such a shitshow. I search how to check if an element is visible in the viewport. The first result is an article that includes incorrect logic for testing if a rectangle overlaps a different rectangle. The second result is a Stack Overflow answer where the article likely copied the function from, as it’s identical. It has 1718 upvotes. There is a note in the comments saying it’s incorrect, with 110 upvotes.

=> More informations about this toot | View the thread | More toots from ruuda@fosstodon.org

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113760994334925324
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
224.490655 milliseconds
Gemini-to-HTML Time
0.23837 milliseconds

This content has been proxied by September (ba2dc).