rgadellaa’s avatarrgadellaa’s Twitter Archive—№ 9,763

    1. How is the GA4 default gtag.js snippet shipping ~69kb of gzipped javascript, compiling on the main thread? We have frameworks that can framework in 3kb 😐 Couldn't this be a 1-digit KB thing that spins up a Worker that does all the heavy lifting? I feel a project coming up 🤔
  1. …in reply to @RGadellaa
    I'm sure I won't be able to do everything #GoogleAnalytics does in just a few kb of main thread js, but I should be able to do page views, scroll and click events? At least for modern browsers?