• owsei@programming.dev
    link
    fedilink
    English
    arrow-up
    10
    ·
    21 hours ago

    That site is literally just static content. Yes JS is needed for interactivity, but there’s none here

    • Victor@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      2
      ·
      19 hours ago

      If you have static content, then sure, serve up some SSR HTML. But pages with even static content usually have some form of interactivity, like searching (suggestions/auto-complete), etc. 🤷‍♂️

      • Limonene@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        3
        ·
        13 hours ago

        Search is easier to implement without Javascript than with.

        <form method="GET" action="/search">
        <input name="q">
        <input type=submit>
        </form>
        
        • Victor@lemmy.world
          link
          fedilink
          English
          arrow-up
          5
          arrow-down
          2
          ·
          12 hours ago

          Does that little snippet include suggestions, like I mentioned? Of course it’s easier with less functionality.

          • humorlessrepost@lemmy.world
            link
            fedilink
            English
            arrow-up
            4
            ·
            edit-2
            9 hours ago

            Back in my day, we’d take that fully-functional form and do progressive enhancement to add that functionality on top with js. You know, back when we (or the people paying us) gave a fuck.