3 ms·
Very few people ever did that, especially at any kind of scale. There were different answers, certainly: server side includes via cgi-bin, using PHP to bolt tog
by afavour 3y ago
Very few people ever did that, especially at any kind of scale. There were different answers, certainly: server side includes via cgi-bin, using PHP to bolt together string templates etc.
It’s always been a pain to do something like maintain consistent navigation across multiple statically rendered pages. Very easy to look back with rose tinted glasses but previous solutions were often worse for the user, e.g. shared navigation created entirely in JS. Hell, I remember sites that used a shared Flash file!
- Solvency 3y agoWhat's wrong with rendering a navbar with a simple iframe? Or SSI? Or JS .innerHTML? Or PHP echo?
- afavour 3y agoiframe: not good for accessibility, doesn't resize to fit content SSI: requires you to have a server to run the include on. Means you can't use something as cheap as an S3 bucket JS innerHTML: bad for SEO PHP echo: nothing wrong with it at all, but again, requires you to be running on a server, keep it up to date, etc etc