Webventures

To boldy go where countless others have gone before.

In-App Browsers are tracking you(r users)

TL;DR: Users are being spied on, websites are broken and hijacked. Most people probably don't know this, but when you click a link in Facebook, Instagram, TikTok and many other apps, you're viewing the site (and all subsequent pages you visit from there) i...

Need cheap paint? Use getComputedStyle().opacity

TL;DR: If you need a double rAF() for a transition to work, getComputedStyle().opacity may be a cheap, synchronous alternative. Update July 7 2022: After publishing this article, I (re)watched the Web animation gotchas video where I first saw the getCo...

The Biggest Thing from WWDC 2022

TL;DR: No one is talking about Apple announcing it's finally going to bring Web Push to Safari. Safari is getting Web Push! On iOS! If you ask me, the biggest thing to come out of WWDC 2022 was the announcement of Web Push for Safari. MacOS is going to ...

Returning a promise in new Promise() vs .then()

TL;DR: Returning a promise in new Promise() never resolves, but returning a promise in .then() does. Consider the example below: The constructor of Promise expects a function that only resolves when its resolve() callback is called. Having it both (callba...