News for hackers. Stuff that matters.
Re:Static web – back to the roots? by revskill on Saturday May 25, 2019 @05:18AM (#20007929)
Static web is fine for some use cases.

For an admin dashboard, static web is stupid.

Re:Static web – back to the roots? by sintaxi on Saturday May 25, 2019 @01:08PM (#20010068)
Static is perfect for an admin dashboard since it doesn't have SEO requirements.

Static doesn't mean there isn't any dynamic content is just means the assets are static files that can be cached both server and client side. Dynamic content can be fetched by the client, it doesn't need to be fetched and delivered by the server.

Re:Static web – back to the roots? by anthuman on Saturday May 25, 2019 @01:30PM (#20010184)
I guess that's one definition of static webpage. My understanding was that static webpages are static. Meaning it has no dynamic content and that everyone accessing the static page sees the same thing.

If dynamic content is client side driven, it wouldn't be "static" as each client could see a different page.

For example, even if you your webpage just displayed the client side time, it would be dynamic since people in different time zones will see a different time regardless of the time being generated on the client side.

Whether it is a static class or a static webpage, static has a well established meaning in the CS world. But I haven't done web development since college and it is possible the meaning of static webpage has changed as technology changes.

Re:Static web – back to the roots? by sintaxi on Saturday May 25, 2019 @04:06PM (#20011039)
Static is a term to describe the assets that are delivered to the client. It means every user is delivered the same assets which means the server doesn't have to do any logic. The assets can be delivered from a CDN and cached on the client indefinitely.

Sending every user `document.write(new Date());` is static because its identical for everyone. The fact each user sees something different is completely irrelevant.

Re:Static web – back to the roots? by chipsa on Sunday May 26, 2019 @04:48AM (#20013874)
Static webpages are served exactly the same to each user. As opposed to dynamically generated webpage. But that doesn't mean a static webpage doesn't use Javascript. It just means the actual content delivered is the same every time.