News for hackers. Stuff that matters.
Re:Show HN: TopLevel – A New Way to JavaScript Your HTML by SimeVidas on Thursday June 05, 2014 @08:31AM (#7851561)
From the readme: <img src="logo_<!--= (isMobile() ? "50x50" : "200x200") -->.jpg">

Isn't this a SPOF? If the toplevel.js script fails to load/execute, the <img> will request "logo_.jpg" which does not exist. (The example implies that "logo_50x50.jpg" and "logo_200x200.jpg" exist.)

Re:Show HN: TopLevel – A New Way to JavaScript Your HTML by phpnode on Thursday June 05, 2014 @08:35AM (#7851577)
yes, the whole thing will break if JS is disabled or that script fails to load, but this is hardly a unique failing of TopLevel. Most websites will break under these circumstances these days.