Live data from Hacker News

Making a Website Under 1kB

tdarb.org

61–70 of 109 posts

Re: Making a Website Under 1kB

#61

I managed under 1.5KB for a page that has an actual function, not just a test: http://www.captiveportal.co.uk And yes, that’s supposed to be a non-https link. I think the entire site, including favicon, might be under 5KB. You can check here: https://github.com/josharcheruk/CaptivePortal

https://www.captiveportal.co.uk works and doesnt redirect to a non-https link, at this point its hard for normal users to go to an http:// link without their browser overriding them neverssl.com solves this by redirecting to a random subdomain (for some reason that isnt clear to me near midnight) a .co.uk equivalent is a great idea though, if it can be made accessible to users with hostile browsers

The purpose of the random subdomain is to ensure that the browser doesn't just show a cached version of the page.

Re: Making a Website Under 1kB

#62
post #58

Earlier quoted context omitted.

https://www.captiveportal.co.uk works and doesnt redirect to a non-https link, at this point its hard for normal users to go to an http:// link without their browser overriding them neverssl.com solves this by redirecting to a random subdomain (for some reason that isnt clear to me near midnight) a .co.uk equivalent is a great idea though, if it can be made accessible to users with hostile browsers

SSL/TLS/https (the padlock symbol) prevents this. This site will never use those technologies. yet it has https? strange haha

The site is hosted in Fastmail - I think they must have enabled https or perhaps I missed that it was active when I put the site in there.

Re: Making a Website Under 1kB

#63
More impressive is to build a website that can be sent in a single TCP packet. This means a site can be no more than 14kb compressed and should serve everything in just a single request. Would have to base 64 encode images as well. This would probably end up as a meatier website but still blazing fast.

Re: Making a Website Under 1kB

#66

For nowadays standards I consider anything below 500kB and with less than 6 server requests already pretty minimal, yet those are still numbers that can achieve a lot of things and still look so "modern"/"normal" that you'd have to look into the dev console to really appreciate the effort that has been put into these. Whenever I see websites that use 5MB large PNGs for photos and have over 30 requests over a time spa…

From time to time I visit websites that my i7 16gb dell xps struggles to process. Bloody hell, 20 years ago that kind of power would have powered a small super computer and now it can't run a news websites.

Re: Making a Website Under 1kB

#67

For nowadays standards I consider anything below 500kB and with less than 6 server requests already pretty minimal, yet those are still numbers that can achieve a lot of things and still look so "modern"/"normal" that you'd have to look into the dev console to really appreciate the effort that has been put into these. Whenever I see websites that use 5MB large PNGs for photos and have over 30 requests over a time spa…

From time to time I visit websites that my i7 16gb dell xps struggles to process. Bloody hell, 20 years ago that kind of power would have powered a small super computer and now it can't run a news websites.

"i7" isn't a particularly useful measure of computer performance. It can refer to over 12 years worth of processors, including the ultra-low power version of the first model, a 1.07GHz processor. That thing probably has trouble loading Emacs.

Re: Making a Website Under 1kB

#70
post #39

Shameless plug I made an entire organ synthesizer in under 1024 bytes of html/js (use your keyboard): https://js1024.fun/demos/2022/23 source / instructions / background: https://github.com/ThomasBrierley/js1024-mini-b3-organ-synth The javascript was significantly reduced in size by using regpack, which is a regex based dictionary compression algorithm targetting very small self decompressing javascript. Writing for…

Nice username!
Post reply on HN