News for hackers. Stuff that matters.
Re:Tell HN: Thank you for not redesigning Hacker News by jakeogh on Monday September 02, 2019 @05:14AM (#20857805)
Can't frame tags reload independently?
Re:Tell HN: Thank you for not redesigning Hacker News by manigandham on Monday September 02, 2019 @04:00PM (#20861430)
It's still a full page refresh but with a page within a page. Making every comment a separate iframe would make the site very resource intensive on client and server.
Re:Tell HN: Thank you for not redesigning Hacker News by jakeogh on Monday September 02, 2019 @06:07PM (#20862084)
I dont see why it would be resource intensive server side. In fact, it would be less resource intensive, since we avoid a full page reload and instead reload a single comment iframe.

As for the rendering engine, a iframe tag per comment is nothing compared to the pile of JS that's normally there on other sites.

Re:Tell HN: Thank you for not redesigning Hacker News by manigandham on Monday September 02, 2019 @06:35PM (#20862209)
Every frame is still a full HTML document that needs to be generated even if it just contains a single comment. This page has 370+ comments which would mean 370+ additional HTTP requests to load them all as standalone HTML pages. That's a massive increase in server load.

On the client, iframe tags are entirely separate browser windows and can use up considerable resources. It's like opening up hundreds of tabs and is far more intensive than running some javascript code which is quickly parsed, compiled and cached in modern JS engines.

Re:Tell HN: Thank you for not redesigning Hacker News by jakeogh on Monday September 02, 2019 @07:02PM (#20862349)
Ah. Thanks. Understood. I often wonder if one could whitelist a very small subset of JS and avoid Turing Completeness but enable 90% of the use cases.