2 ms·
Interesting point. Wikipedia's definition of 'static web page' quite explicitly includes pages that use JavaScript, it just precludes the server from dynamicall
by MaxBarraclough 7y ago
Interesting point. Wikipedia's definition of 'static web page' quite explicitly includes pages that use JavaScript, it just precludes the server from dynamically generating the pages. To quote: Dynamic functionality must be performed on the client side.
An SPA would be expected to use APIs, which wouldn't be static, but if we treat the APIs as separate from the static web page, they might still make the cut.
This random article [1] considers API-powered static website not to be a contradiction.
[0] https://en.wikipedia.org/wiki/Static_web_page https://en.wikipedia.org/wiki/Static_web_page
[1] https://hackernoon.com/quickstart-an-api-powered-static-website-1cc140205df9 https://hackernoon.com/quickstart-an-api-powered-static-webs...
- arkanciscan 7y agoI didn't mean that a static site doesn't use JS at all, just that it can still work when JS is disabled. It's not that we necessarily expect people to turn off JS, but that the site can still be fully represented using only static files.