News for hackers. Stuff that matters.
Re:Show HN: TopLevel – A New Way to JavaScript Your HTML by kristopolous on Thursday June 05, 2014 @04:20AM (#7850840)
Let me respond paragraph-by-paragraph:

---

1. Blocks incremental rendering?

Indeed ... for people not TeeWEE, "incremental rendering" means say a 2MB HTML file will be partially rendered prior to the entire payload being transferred. That is no longer the case here. 100% true. As an aside, I'll think hard about how to overcome this.

---

2. The description of how it works?

Correct. Very succinct. Good Job!

---

3. Significantly slow down a page?

This depends on the page. If it's a small-footprint HTML page which leverages templating, then the base page will be quite small.

If the design previously loaded unneeded dependencies which were only applicable to a subset of users, then this provides a very easy way out without requiring lots of technical knowledge - and probably a good speedup to boot.

As far as actual tests, I've refactored a number of personal projects with this library, and the time to where the spinner stops (if I load the two versions side by side) isn't noticeable through my eyes. I can't honestly tell which one is which.

---

4. A "mis-use of JS"?

It's certainly non-canonical - but I'd argue that many "standard" common practices got their start being just as heretical and then were later replaced by standardized ceremonial ways of doing things.

Re:Show HN: TopLevel – A New Way to JavaScript Your HTML by swalsh on Thursday June 05, 2014 @11:24AM (#7852380)
4. A "mis-use of JS"? It's certainly non-canonical - but I'd argue that many "standard" common practices got their start being just as heretical and then were later replaced by standardized ceremonial ways of doing thing

----------------------------------------

I can't tell you how many hours of time I've wasted on non standard "Standard" things simply because it saved some other guy 20 minutes in time somewhere else. It's a nice hack, but let's leave it at that.... try to improve your resume with other methods.

Re:Show HN: TopLevel – A New Way to JavaScript Your HTML by ericclemmons on Thursday June 05, 2014 @10:43PM (#7855963)
That was uncalled for.
Re:Show HN: TopLevel – A New Way to JavaScript Your HTML by kristopolous on Thursday June 05, 2014 @08:47PM (#7855585)
hey, that hurt my feelings. :-(
Re:Show HN: TopLevel – A New Way to JavaScript Your HTML by thathert on Thursday June 05, 2014 @08:57AM (#7851675)
Re: 1. Have you considered something like an isomorphic approach to optionally preprocess the HTML on the server side?
Re:Show HN: TopLevel – A New Way to JavaScript Your HTML by EdSharkey on Thursday June 05, 2014 @08:55AM (#7851670)
You silly creature, I love you!