Live data from Hacker News

Making a Website Under 1kB

tdarb.org

21–30 of 109 posts

Re: Making a Website Under 1kB

#21

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

example.com also works for that

Re: Making a Website Under 1kB

#24

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

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

Re: Making a Website Under 1kB

#25
post #16

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

Were you aware of http://neverssl.com before making this? Though I guess your page is slightly smaller (687 bytes vs 1900 bytes compressed). http://captive.apple.com is even smaller though.

I didn’t know about neverssl.com. I think I would have still made captiveportal.co.uk even if I did because it was fun :-)

Re: Making a Website Under 1kB

#26

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

Well, the function is not in the content so your website could even be completely empty. I would say https://cv.tdarb.org/ has more function.

Fair critique.

Re: Making a Website Under 1kB

#27

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

I’ll add it to the to do list. The current hosting won’t be around after next year so it’s getting moved in about 6 months to where I have some more control and I can probably implement changes needed.

Re: Making a Website Under 1kB

#29
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 span of multiple seconds I just question the general state of web-development these days.

I just recently stumbled upon a site that had it all: webp/avif everywhere, minified CSS, even ditching unused classes from used frameworks, CSS data:-embedded and subsetted fonts (I think it even used a recent version of FontAwesome 6, but it still managed to make the WOFF2 be only 2kB in size because they just utilized like two dozen logos), only one request each for CSS and JavaScript (everything concatenated and with nice cache policies) and the site was still usable/viewable even without either one of these if you wanted to. Everything was automated in their deployment pipeline even. It only came to my notice because they wrote an article about it. I can't find it in my history but those things will stick to your head for a while.

Re: Making a Website Under 1kB

#30

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

[deleted]
Post reply on HN