Hacker News new | ask | show | jobs
by pjc50 654 days ago
The amount of pain caused by HTML not having a "client-side include" is ridiculous. Server-side include is very old, but for various reasons having it client side would be easier for use cases like this.

(Security would have to be the same as <script>)

2 comments

We could call it <frame>, or maybe <iframe> since all the cool kids use isomethings these days.
Frames don't reflow. For headers etc people would want to integrate with the rest of the DOM.
"seamless" iframes were meant to, right? Don't know what happened to that.
Most headers today are expandable and need to be”open up” to take the full more of the screen when interacted with.

This is not possible with a frame.

Obligatory reminder that XSLT exists.