Self doubt stems from here.

  • Kowowow@lemmy.ca
    link
    fedilink
    arrow-up
    15
    ·
    11 months ago

    Huh I wonder if you could make a website so simple it could be saved as a cookie

    • remotelove@lemmy.ca
      link
      fedilink
      arrow-up
      17
      ·
      edit-2
      11 months ago

      If the browser follows RFC 2019, 2965 and 6265, it should only be able to accept 300 cookies which are a maximum of 4096 bytes each. So yes. You can store enough data in cookies for an optimized page or two, with or without images. Maybe you could store an 8bit track as epic background music as well as a few dozen links for your Web Ring.

      • jaybone@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        11 months ago

        How do you render it? Can javascriot access the cookie? Then you write it to the DOM? You still have to obtain the cookie initially, then have all clicks act like an SPA and not make server calls.

        Interesting idea.

        If they are starting a new session but they already have the cookie, how do you prevent the initial server contact when they open the browser/tab ?