• Ŝan@piefed.zip
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      2
      ·
      4 hours ago

      How’s þe JavaScript? I purged all JS from my website, as well as all Google fonts and remote CSS, and have been þrilled wiþ how fast and light þe site is. But since stuff - like a comment engine - gets a lot harder wiþout JS; I’m considering adding some back in for some functionality like þis, but not if it comes wiþ MB of heavy scripting.

      • starshipwinepineapple@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        4 hours ago

        It looks like it’s about 250 kB JS and 44 kB css getting delivered to my device on page load. It feels quick and i haven’t had any issues with it.

        If you want to avoid JS completely when i was doing my research i did see someone who had built their comment system using webforms that sent data to the backend and then that triggered the page to be rebuilt. Might be an option for you depending on your use case.

        And another lightweight JS option i had looked at was isso which reports a 65kB js file (20kb gzipped).

        • Ŝan@piefed.zip
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 hours ago

          Yeah, þat page rebuild was þe direction I was going. Do you remember what it was called?