[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: javascript.jpg (18 KB, 347x500)
18 KB JPG
Mainly due to picrel. Ten years ago, it was possible to use 4chan and many other websites with js completely disabled. But browsers stopped adding features that worked without js. Firefox killed all their plugins with their quantum release. The vibrant diversity of the ecosystem was squashed and everyone was force fed ReactJS and other shadow-dom bullshit. The web as a result has become boring and uninspiring.
>>
I don't know why websites aren't rendered directly to a canvas. Complete adblock destruction.
>>
File: 1784193716416699.jpg (54 KB, 1074x791)
54 KB JPG
>>109419220
React, Preact, and VDOM are good THOUGH
>>
Blame bots, make sure to inspect all your devices for residential proxies to help solve the problem.
>>
>>109419275
I think there were attempts at this when people needed to replace those websites that used to be entirely made in flash.
>>
>>109419275
say thanks to all the cripples that need to access websites and accessibility laws.
>>
Blame React, it is the worst shit in the history of Internet, all the other frameworks thsy require a build step are awful as well. I hate it, we wouldn't be in this shit if nocoders learned a little bit of Rails or Django and just used SSR (even SSR is a term that appeared only because of React, before it no one really thought that rendering html with js is a good idea).
>>
>>109419220
JavaScript is bad. React is bad. All are bad. The web is COMPLETELY and UTTERLY screwed.
>>
>>109419220
What?
>>
Remember when you had sites like csszengarden and all you had to do was swap a css file for a completely different look. That was so wild, mind-blowing even.

Then JS came along and said "Uh, I can do that! Even better, I' will add variables!! (shiny!)" And we got SCSS and all kinds of retarded shit that has to be transpiled, hoisted, linted, and it's just a goddamn garbage dump of bad ideas. But nobody was making great new classless css anymore, it was all tagged up broken horseshit that had to be run through three levels of npm build shit. npm build shit which infects your whole goddamn machine with who knows what and steals your ssh keys btw.

Even now that css variables exist, most of the work out there still uses this jeetscript solution rather than just giving you a fucking flat file. It's disgusting.
>>
Between HTML, CSS and JS, JS is by far the least worst of them all.
HTML is a total disaster of a shit language.
CSS is really, really bad but they're very slowly making it better.
JS is fine FOR A SMALL SCRIPTING LANGUAGE though it's terrible for making applications.
>>
Every once in a while, it gets so embarrassing that the browser makers will lob out a big fat turd as a humiliation ritual. Like, hey dude, why is there no combobox in html? That has been a native widget since fucking xerox parc.
So they give us some half implemented bullshit like datalist and act like it is God's gift to man. Nope, doesn't work on half the browsers and we are all stick stuck eating some reactjs horseshit rather than just declaring a <combobox> in the html
>>
Google purposely nerfs Youtube for Firefox. If you install Chrome Mask add-on and enable it on youtube.com, it is no longer laggy and eating your CPU.
>>
>>109419220
>But browsers stopped adding features that worked without js.
Majority of changes to html and css do not need JS.

>Firefox killed all their plugins with their quantum release
Works on my machine

>The vibrant diversity of the ecosystem was squashed and everyone was force fed ReactJS and other shadow-dom bullshit.
No one is forcing you to use ReactJS on your website.

>>109419275
SEO
>>
>>109425053
>Chrome Mask add-on
Nice, thanks. I was just looking for something that did exactly that for youtube.
>>
>blaming technologies
You don't get it. The internet has been ruined by normies and companies cattering to them. It's that simple.
>>
>>109419220
just use JS
>>
>>109426380
yeah. Although it's apps now. a website will never get users. They don't want to leave the app they use.
>>109422584
theming is over, anon. The idea that the user decides how anything looks is a 90s one. We used to have whole OSes using any custom theme you like and now devs have to be bullied into respecting dark mode.

Anyway you couldnt swap a CSS file now because all positioning and layout was moved to CSS. A painful mistake
>>
>>109419558
Virtual DOM + diffing algorithms actually have piss-poor performance to direct real DOM manipulation and a signals-based observable data flow and view updates.
>>
>>109426765
It doesn't really matter when most of this time the backend and network is the bottleneck, not client CPU.
>>
>>109426854
It matters because it becomes an annoyance that visually slows down the browser and causes discomfort to the user. It's like saying "hey, since you're flying on a plane 35 thousand feet above ground and you just have to wait 9 hours before you get to your destination, you might as well hold piss all that time and avoid sleeping, you have to wait anyway, so what's the problem?"
>>
>>109427349
>It matters because it becomes an annoyance that visually slows down the browser and causes discomfort to the user.
The time React takes to do virtual dom diffing is order of magnitude less it takes for a request to go to server, be processed and get back.
Here is example. It takes ~200ms for request to go back and forth. Virtual dom diffing takes about 7ms, on two rerenders combined(first displaying the page with placeholders and then displaying the fetched data combined). As you can see it takes significantly more time to update real dom and that's where the browser takes most of of the time. So in the end, virtual dom actually can save you time if it cuts on real dom updates. Another thing worth noting is that React is working on replacing dom with placeholders while the network request is already going. This also cuts down on the time it takes for requested data to appear on your screen as setting up the entire subpage takes more time than just replacing placeholders with final data once it arrives. With plain SSR all of this would be queued after the request finishes and likely result in more lag than if you used SPA. Setting up entire DOM and layout from scratch takes a lot of time!
>>
>>109427711
It doesn't matter, everyReaxt site I visit is the slowest shit any, you won't convince me to like it react fanboy.
>>
>>109427989
Nta but it's not React's fault, it's people adding animations no one gives a fuck about. I swear every single time I visit one of those websites with shitty parallax effects, or stuff that loads as you try to scroll the website, without actually scrolling the website I close the page immediately.
>>
>>109426380
Normies could have skated by fine on the previous internet without too much handholding if the companies involved had not tried to expand their market share by importing all the thirdies into it. Even normie Americans are pretty reasonably well educated. They might have shit opinions but its the savage lands of Not-America that dumbed everything down to what we now think of as the lowest common denominator.
>>
>>109427989
>It doesn't matter, everyReaxt site I visit is the slowest shit any
They are slow because of backend, not because of front end.

>you won't convince me to like it react fanboy
I don't need to. I provided data for everyone to see. Everyone can check out that and anyone can make such a simple test themselves. You however provided nothing to support your claim beyond your personal impression and calling me a fanboy.
If anything, your conscious ignorance and use of ad hominem make you look like fanatic.

>>109428101
Majority of animations you see on the web are done with CSS with minimal or no js invoiced at all. React has nothing to do with animations, at best it can set a class of some object that will then be animated by your browser.
>>
Stop using a 10yo smartphone to browse the internet. No desktop user on fiber cares about this bullshit
>>
>>109419220
what you said makes no sense. html and css have been getting more and more features to reduce the need for javascript.
you don't "need" javascript to make a website at all.
>>
>>109428338
People this days use NextJS even to do a fucking personal blog.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.