top | item 20010184

(no title)

anthuman | 6 years ago

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.

discuss

order

sintaxi|6 years ago

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.

chipsa|6 years ago

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.