1. 47
  1.  

  2. 11

    On a related note, sr.ht looks great!

    1. 7

      Thanks!

    2. 7

      Github has large businesses paying lots for their service. They dont need to blast you with adverts and subscription reminders. A news website has very few paying customers anymore so what else are they to do. You can give lectures about keeping ui clean and using no js all day but that doesn’t bring money in.

      The real issue is how these clickbait NYT articles keep getting to the top of HN when they usually have little to no substance.

      1. 7

        One can deliver ads, without needing 10’s of MB’s of data. I’m not a fan of the ads either, but to say ads are required to be giant ram and bandwidth sucking monsters is blatantly false. That’s not a requirement for ads, that is just where we have gotten as the ad industry has infected the Internet, not a technical requirement for advertising.

        But even with MB’s of ad-infested insanity plastered everywhere, the rest of the site doesn’t also need to add to the craziness with MB’s of junk for what is essentially a page of text.

        1.  

          This is true, we could replicate the ad infestedness of a website with a tiny fraction of the processing power needed. But I think it’s more complex than that. To understand how to fix the problem we need to know how we got to the problem.

          Who is making websites slow? Is it the site developers, the ad network developers or the managers? It’s quite clear that most of the time its the ad network scripts that slow websites down as the web jumps to warp speed with an ad blocker but why do some websites (Primarily news websites) have 1000 different ad network scripts and tracking scripts? If you ask the site developers they would probably tell you they hate it and wish they could remove most of them but its the managers that request tracking script #283 be added and the devs don’t get much of a say in it so posting an article on a developer focused website telling them something they already agree with is next to useless.

          This is the primary reason AMP makes websites fast. Not because there is any tech magic that makes it fast. But because it lets developers say to managers “We can’t do that. It’s impossible on AMP”

          There is also another case where big websites are slow and horrible to use on mobile. Twitter and reddit are like this. I think here the reason is to make you use the mobile app so telling them to make their websites work faster will also do nothing because they don’t want you using the website.

      2.  

        While I basically agree here, the problem is, if you are a new developer and you search the internet on how to build a menu for my website, basically all you will get back is using giant JS frameworks that take up gobs of space, instead of the few lines of CSS and HTML5 you need(without any JS) to actually build a menu. I don’t have a good solution to this, but I see this as a major contributor for why this craziness keeps growing in size.

        I think it also doesn’t help that when we do get new things like webauthn, but then only get a JS interface to use them. Somewhat forcing our hand to require JS if you want nice things. That doesn’t mean we have to shove 500MB of JS to the user to use webauthn, but we can’t do it with just HTML and a form anymore.

        1. 7

          That’s because nobody should need to search the internet for how to make a menu. It’s a list of links. It’s something you learn in the first hour of a lecture on HTML, chapter 1 of a book on HTML.

          You probably neither need nor want to use webauthn. Certainly not yet! It was published as a candidate recommendation this year. Give others a chance to do the experimenting. Web standards used to take 10 years to get implemented. Maybe don’t wait quite that long, but I’m sure you’ll do fine with an <input type="password"> for a few years yet.

          1.  

            I was just using both as an example, I apologize for not being clear.

            Yes a menu is just a list of links, but most people want drop-down or hamburger menu’s now, and that requires either some CSS or some JS. Again, go looking and all the examples will be in JS, unless you go searching specifically for CSS examples.

            This is true of just about everything you want to do in HTML/Web land, the JS examples are super easy to find, the CSS equivalents are hard to find, and plain HTML examples are super hard to find.

            Anyways, I basically agree webauthn isn’t really ready for production use, but again, both of these were examples, and webauthn just because it’s something I’m currently playing with. You can find lots of new web tech that is essentially JS only, despite it not needing to be, from a technical perspective. This is what I’m saying.

          2.  

            Maybe check out Dynamic Drive. I used to get CSS-based effects off it for DHTML sites in early 2000’s. I haven’t dug into the site to see if they still have lots of CSS vs Javascript, though. A quick glance at menus shows CSS menus are still in there. If there’s plenty CSS left, you can give it to web developers to check out after teaching them the benefits of CSS over Javascript.

            I also noticed the first link on the left is an image optimizer. Using one is recommended in the article.

            EDIT: The eFluid menu actually replaces the site’s menu during the demo. That’s neat.

          3.  

            It’s not JavaScript that bloats an application, not even using frameworks. Vue is 20kb minified and gzipped, if that is ‘too much’ than you are writing for a very specialized audience. Using js won’t magically make ads, trackers or popups appear on your web page. Having an ad and impression based financing model will.

            1.  

              Size is just one metric. Ads, trackers, and popups all generally require JavaScript, and if you restrain yourself from using it you will naturally also not be using these things. Not using JavaScript also makes you exercise restraint in your design, letting the browser do what it’s best at (rendering pages) without straining your end-user’s resources.

              1.  

                sure, if you never touch a knife you won’t commit a knife crime, but encouraging everyone to stop using knifes isn’t a good idea. Implementing ads and trackers without javascript is trivial as well.

                Either way, I agree with you on the point that you shouldn’t use JS when it’s just as easy and nicer for everyone involved when you can skip it. But some web sites really are ‘web apps’, they have interactivity that makes it very inconvenient to not use js.