3 ms·
>If you have to run javascript it is not a static page anymore. I've seen a lot of this particularly weird overloading of "static HTML" lately. Static HTML, or
by mtlynch 4y ago
>If you have to run javascript it is not a static page anymore. I've seen a lot of this particularly weird overloading of "static HTML" lately. Static HTML, or static webpage, is meant to describe the experience from the person who is trying to look at the page. It does not describe the experience of the dev.
I don't think this has been the common meaning of "static page" for at least 10 years.
From Wikipedia [0]:
>A static web page (sometimes called a flat page or a stationary page) is a web page that is delivered to the user's web browser exactly as stored
Static refers to the fact the files are served without any application-level processing on the server side beyond simple file serving. A page can depend on CSS/JS/WASM and still be a static page.
[0] https://en.wikipedia.org/wiki/Static_web_page https://en.wikipedia.org/wiki/Static_web_page
- superkuh 4y ago>A static web page (sometimes called a flat page or a stationary page) is a web page that is delivered to the user's web browser exactly as stored" Right. "exactly as stored" It doesn't matter who or what wrote the HTML. I could do it by hand or maybe use a WYSIWYG editor to make it or maybe it's generated by a script. The point is that there's an html file sitting on disk and the server delivers it without modification and it's viewable in the browser as it. It's just the webserver sending the contents of the file. Whereas this "Password protected a static HTML page" cannot be viewed in the browser without a "web application", the javascript, dynamically changing the file. It's pretty clear cut. So it fails the test of the very link you posted: >in contrast to dynamic web pages which are generated by a web application
- deleted 4y ago[deleted]
- Bytewave81 4y agoIt's really not "clear cut." By the definition which you agree with, an HTML file containing JavaScript is served to the client without modification, and is viewable in any modern browser with a functioning JavaScript engine. The "web application" in reference is a server-sided application which controls and renders the content, as can be assumed based on context from the rest of that page. Namely: > Any personalization or interactivity has to run client-side, which is restricting.
- mtlynch 4y ago>>A static web page (sometimes called a flat page or a stationary page) is a web page that is delivered to the user's web browser exactly as stored" >Right. "exactly as stored" It doesn't matter who or what wrote the HTML. I could do it by hand or maybe use a WYSIWYG editor to make it or maybe it's generated by a script. Yes, agree. >The point is that there's an html file sitting on disk and the server delivers it without modification and it's viewable in the browser as it. No, I don't think that's the widely understood interpretation of "static web page." Even the definition you agree with just says the file is delivered as-is. It says nothing about how the browser renders the page.
- snowwrestler 4y agoThe title says “static HTML page” not “static web page”. JavaScript is not HTML.
- RobotToaster 4y agoNeither is CSS, if you want to be pedantic.
- snowwrestler 4y agoI agree
- RobotToaster 4y agoOP said static HTML page though, that very much means something only using static as opposed to dynamic HTML. https://en.wikipedia.org/wiki/Dynamic_HTML https://en.wikipedia.org/wiki/Dynamic_HTML "DHTML allows scripting languages to change variables in a web page's definition language, which in turn affects the look and function of otherwise "static" HTML page content after the page has been fully loaded and during the viewing process. Thus the dynamic characteristic of DHTML is the way it functions while a page is viewed, not in its ability to generate a unique page with each page load. By contrast, a dynamic web page is a broader concept, covering any web page generated differently for each user, load occurrence, or specific variable values. This includes pages created by client-side scripting and ones created by server-side scripting (such as PHP, Python, JSP or ASP.NET) where the web server generates content before sending it to the client."