News for hackers. Stuff that matters.
Re:Entire website in a single HTML file by CoryAlexMartin on Friday December 24, 2021 @12:38AM (#29670639)
Building a website without JS is not hard.
Re:Entire website in a single HTML file by adabaed on Friday December 24, 2021 @01:38AM (#29670973)
Depends of what a website is for you.
Re:Entire website in a single HTML file by dmitriid on Friday December 24, 2021 @02:48AM (#29671351)
The same it is for everyone since the beginning of WWW: a static page with images. The web is uniquely unsuitable for anything else.
Re:Entire website in a single HTML file by cutler on Friday December 24, 2021 @03:54AM (#29671734)
So forget e-commerce? Amazon didn't do too badly and CGI was hot on the heels of HTML so I think "everyone" is a little exaggerated.
Re:Entire website in a single HTML file by dmitriid on Friday December 24, 2021 @04:00AM (#29671781)
> So forget e-commerce?

Says (s)he and immediately follows up with

> Amazon didn't do too badly

Re:Entire website in a single HTML file by cutler on Friday December 24, 2021 @09:20PM (#29679744)
My point is that the WWW was a lot more than static HTML and CSS pretty soon after its inception.
Re:Entire website in a single HTML file by dmitriid on Saturday December 25, 2021 @02:51AM (#29681347)
You're confusing displaying different information at different URLs with being "more than static HTML and CSS".
Re:Entire website in a single HTML file by TomGullen on Friday December 24, 2021 @06:18AM (#29672662)
This is a very old fashioned point of view I’m afraid, things have moved on.
[dead]
Re:Entire website in a single HTML file by adabaed on Friday December 24, 2021 @06:23PM (#29678760)
I know enough to don't feel the need to demonstrate a random guy in a forum that I know more about a topic.
Re:Entire website in a single HTML file by The_suffocated on Friday December 24, 2021 @02:48AM (#29671355)
May I ask how to create a Mathematics Stack Exchange clone without JS?
Re:Entire website in a single HTML file by adabaed on Friday December 24, 2021 @03:06AM (#29671445)
PHP and cocaine.
Re:Entire website in a single HTML file by est on Friday December 24, 2021 @09:33AM (#29673878)
In the past Latex symbols were rendered on server as an image.

It was not pretty but it works virtually anywhere.

Re:Entire website in a single HTML file by jhgb on Friday December 24, 2021 @05:26AM (#29672369)
What part of a Mathematics Stack Exchange clone would require JS?
Re:Entire website in a single HTML file by tazjin on Friday December 24, 2021 @06:36AM (#29672765)
In "modern" stacks it is preferable to do things like layouting of formulas millions of times on the clients, instead of once on the server. I guess that sort of thing needs JS.
Re:Entire website in a single HTML file by southerntofu on Friday December 24, 2021 @06:57AM (#29672883)
As you have pointed out, but formulated more explicitly: client-side rendering should deal only with HTML/CSS because that's what the browser is built and optimized for. Every line of script changing the DOM (html structure) may trigger a redraw of the page, which means wasting considerable amount of resources! But even if your script outputs HTML only once, you still have O(n) HTML templating instead of O(1) for n clients. Such a waste!
Re:Entire website in a single HTML file by The_suffocated on Friday December 24, 2021 @11:26AM (#29674868)
The MathJax part.
Re:Entire website in a single HTML file by jhgb on Friday December 24, 2021 @05:46PM (#29678506)
MathJax is somewhat convenient but doesn't seem necessary at all.