TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

One-Line Website

46 pointsby sramovalmost 15 years ago

12 comments

jasonkesteralmost 15 years ago
So minimal... So inefficient...<p>There's a reason we do image, css and javascript includes in HTML. This idea undoes all that.<p>I can't imagine why the author, clearly a bright guy, went out of his way to build this thing.
评论 #1494035 未加载
MarkPilgrimalmost 15 years ago
My build scripts are such an "evolved" mish-mash of Python3, Python2, Java, makefiles, and shell scripts that I'm amazed they work for <i>me</i>, much less for anyone else. (This point was brought home to me when I moved to a new laptop and spent too long trying to remember and install all the dependencies.)<p>Anyway, nice job, and hooray for unintended uses of open source code.
评论 #1494123 未加载
efsavagealmost 15 years ago
I like it, it's clever, but I was disappointed that the headline was misleading in the interest of being catchy. "How I made my website a one-hit-wonder (intentionally)" might have done the same thing without me thinking "oh, he just stripped out newlines".
评论 #1494056 未加载
sramovalmost 15 years ago
Added a note about nginx http_gzip_static_module which doesn't get used as much as it should.<p>One tip on the gzip parameters, I use -9cn. The 'n' flag is important as your gzipped files will not appear corrupted by many gzip online checking tools. E.g. everything is green: <a href="http://redbot.org/?uri=http%3A%2F%2Fsimeramov.com%2F2010-07-ocd" rel="nofollow">http://redbot.org/?uri=http%3A%2F%2Fsimeramov.com%2F2010-07-...</a>. Took me a while to figure it out. I believe it also benefits rsync.<p>There is one serious downside to all this reckless optimization -- I don't even notice the bandwidth RRD graphs changing if some page hit the HN front page or get featured elsewhere. The pages are so small the graphs almost always look the same, i.e. basically flat :) All the bandwidth is from me backing up my home dir to server.
jwsalmost 15 years ago
50% of my load time was trying to pull the favicon and getting the 404. I wonder if there is a way to use the &#60;LINK rel=icon ...&#62; tag to tell a browser <i>not</i> to look for a favicon. It is eluding my googlabilty if there is.
评论 #1494433 未加载
评论 #1494570 未加载
slateralmost 15 years ago
You could shorten it even more by just using<p>body {border-left:18px solid #ebf7fb;}<p>:)<p>Oh, and an RSS feed would be great, too!
评论 #1493914 未加载
jmcnevinalmost 15 years ago
Looking at the source, there's no html, head or body tag in the document (but there are CSS styles referencing the body tag, hmm).<p>This could be some minimization trickery that assumes most browsers can deal with malformed html documents, but [slams fists on table] IT'S NOT RIGHT, I TELL YOU!
评论 #1495174 未加载
famfamalmost 15 years ago
Thought: do data urls work in .css files? e.g. background: url(data:....); ? Because then you could have one cacheable file (everything.css) that sits along side your pages (use background images instead of plain old imgs), so you would only have to download them once, not on every page load.
daverodeckeralmost 15 years ago
Includes are valuable for re-usability. If a website has a relatively low number of page hits/user or doesn't implement a standard across many pages, the benefits of includes are reduced.<p>This concept could be progressed into a proxy server!
fishercsalmost 15 years ago
so clean, the minimalist in me loves it.
marknutteralmost 15 years ago
Great for websites with no design whatsoever.
kabanossenalmost 15 years ago
How come you don't have a link on each page to the home page?
评论 #1493917 未加载