• CosmicTurtle0@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    19
    ·
    2 days ago

    I’m a JavaScript developer. But it is fully possible to create a site with no frontend JavaScript

    Like many things, you should use JavaScript if you need it. If you don’t need remote data sources or live refreshes, pure html and css work perfectly fine and, I would go so far as to say, may even be necessary for resistance web pages.

    This is especially true if you’re using tor. JavaScript can leak your IP address and sites will work more reliability if you have static content that’s refreshed on the back end than using a bloated next.js app taking up RAM.

    • go $fsck yourself@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 days ago

      The vast majority of those are useless animations. Some are even a much worse implementation of something done much simpler with JS and requires significantly more code weighing down the page speed. Some examples of this are the cursor tracking examples which use hundreds of divs in a grid.

      While there are some useful examples, it seems like this repo is more of a list of to show off advanced CSS, fancy animations, and designs.

      • frezik@midwest.social
        link
        fedilink
        arrow-up
        3
        ·
        21 hours ago

        Yeah, those are mostly showing off. They’re not really what I’m getting at, either. I more want to challenge people to make useful things simply.

        And yes, there are ways that JavaScript can be used to give users a faster and more streamlined experience. The web as it stands is so far past that justification. I swear there’s lots of “full stack” devs that haven’t a clue how to make a site without React.