Live data from Hacker News

Making a Website Under 1kB

tdarb.org

51–60 of 109 posts

Re: Making a Website Under 1kB

#53
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…

I just wanted to say this is really impressive :)

The latency is almost zero. I've always thought of "browser applications" as these heavyweight mammoths where each keystroke needs at least a couple hundred milliseconds to process.

Good to know these kinds of things are still possible. Browser synthesizers have become my new point of interest :)

Re: Making a Website Under 1kB

#54
Some comments here mentioned that these pages were essentially just text. I wanted to create something that would be useful, showcasing some basic HTML, CSS and JS.

Here's an entry I hacked up together: https://coffeespace.org.uk/colour.htm

It comes in at 1015 bytes and converts HTML colours into their shortened form (i.e. #00F for blue) and displays the colour visually.

Re: Making a Website Under 1kB

#55

Earlier quoted context omitted.

> 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 500kB honestly doesn't require much effort at all. My WordPress blog with a popular theme and a few…

Honest question—do actual real people use Facebook share buttons? Have they ever? To me it looks like it has always been a fairytale made up by Facebook to spread their analytics scripts all over internet.

I don't know, my blog is small, but I don't think so. Especially since it's a blog about programming I'm sure it's not the kind of stuff you'll share on Facebook...

I removed it today after seeing the impact on page size.

I guess it works for some niches like news, online quizz, etc.

Re: Making a Website Under 1kB

#56

Earlier quoted context omitted.

> 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 500kB honestly doesn't require much effort at all. My WordPress blog with a popular theme and a few…

Honest question—do actual real people use Facebook share buttons? Have they ever? To me it looks like it has always been a fairytale made up by Facebook to spread their analytics scripts all over internet.

Sure they do, but do a meaningful number of people use it for niche geek blogs? No. Major news sites? Sure.

Re: Making a Website Under 1kB

#57
post #24

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

Most browser still don't have force https enabled by default, so without HSTS there is nothing preventing plain http.

both firefox and chrome do for me, trying https first even when i type http://. particularly if https was ever used for a domain in past which drives me nuts for local network domains. the only way i make them stop is to clear history

Re: Making a Website Under 1kB

#58

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

  SSL/TLS/https (the padlock symbol) prevents this.

  This site will never use those technologies.
yet it has https? strange haha

Re: Making a Website Under 1kB

#59
Staying under 1KiB is pretty hard when just plain text alone easily takes more than 1KiB.

Checking my own site with `find . -name '*.md' -exec wc -c {} + | sort -h` I find that 30 Markdown files are under 1KiB and 40 are over 1kiB. The largest file is a 18266 bytes post which is still quite small compared to most other blogs AFAICT. It also excludes the possibility of including images with more than a dozen pixels.

Post reply on HN