News for hackers. Stuff that matters.
Re:Password protect a static HTML page by meghan_rain on Saturday February 18, 2023 @01:15PM (#34849388)
Lol no. If you HTML is generated, it's by definition not static anymore.

Otherwise, all of the React server side rendering is static HTML.

Re:Password protect a static HTML page by superkuh on Saturday February 18, 2023 @01:21PM (#34849458)
Oh, so when I make an .html file in Dreamweaver WYSIWYG HTML editor and save the .html file to my websever ~/www/ dir it is automatically not a static page anymore because I used a program to generate it? This is a very wild and weird interpretation of 'static site' that does not fit with existing usage.
Re:Password protect a static HTML page by Kiro on Saturday February 18, 2023 @01:34PM (#34849622)
You are the last person to have a say in that considering your incorrect take that JS can't be static. You're clearly misaligned with common usage of terms.
Re:Password protect a static HTML page by superkuh on Sunday February 19, 2023 @09:24AM (#34857787)
When javascript started being able to change HTML significantly the result was literally named "Dynamic HTML". So it is clear this is not a static HTML page. The only thing left to argue is weather it is a static web site. People who got into web dev after 2010 will say yes, people who watched HTML/JS evolve over it's lifetime will say no.
Re:Password protect a static HTML page by GeneralTspoon on Saturday February 18, 2023 @01:21PM (#34849463)
No, because React is dynamically generating the HTML on the fly.

If you pre-compile the HTML using something like Jekyll, so that the webserver is just serving HTML files without any dynamic/on-the-fly processing at request time, then it's considered static.

Re:Password protect a static HTML page by matsemann on Saturday February 18, 2023 @01:47PM (#34849766)
React server side rendering: most likely dynamic

React on the client side: static, as you still got the same files served, how they dynamically alter the page runtime doesn't count.

Re:Password protect a static HTML page by SamBam on Saturday February 18, 2023 @06:06PM (#34852049)
This is the most bizarre argument. Of course you can use build tools to generate static web pages.

The issue is whether they are being generated dynamically by a server. This project isn't. You run a build-tool once and then can post the .html page anywhere. It's static.