Live data from Hacker News

Making a Website Under 1kB

tdarb.org

11–20 of 109 posts

Re: Making a Website Under 1kB

#11

1kb for the entire site would be impressive! Would probably just do a single page of ASCII text written in shorthand for that. They actually mean 1kb per page, which is pretty slick and decent even on dialup.

This is confusing me about the 1MB club. On the site under "submit" it says:

    The two rules for a web page to qualify as a member:

    Total website size (not just transferred data) must not exceed 1 megabyte
    The website must contain a reasonable amount of content / usefulness in order to be added - no sites with a simple line of text, etc.
The github repo just says:

    An exclusive members-only club for web pages weighing less than 1 megabyte

So which is it? Are sites with multiple pages under 1MB (but then the total for all pages exceeds 1MB) allowed, or must the entire site weigh in less than 1MB?

Re: Making a Website Under 1kB

#12
> Building a website that actually serves useful content while squeezing its page size under 1,024 bytes is no easy feat.

Narrator: It was extremely easy feat.

Just make spec-invalid webpage and skip all the heads, bodies, htmls and rest of it.

Re: Making a Website Under 1kB

#13

1kb for the entire site would be impressive! Would probably just do a single page of ASCII text written in shorthand for that. They actually mean 1kb per page, which is pretty slick and decent even on dialup.

This is confusing me about the 1MB club. On the site under "submit" it says: The two rules for a web page to qualify as a member: Total website size (not just transferred data) must not exceed 1 megabyte The website must contain a reasonable amount of content / usefulness in order to be added - no sites with a simple line of text, etc. The github repo just says: An exclusive members-only club for web pages weighing l…

It seems really silly as this is extremely low bar to get, you can get there by accident if you "just" use plain html/css.

Then again in age of JS frameworks maybe it is an achievement for the new developer that was gaslighted into thinking 500MB of deps to make a simple site is normal

Re: Making a Website Under 1kB

#15
post #12

> Building a website that actually serves useful content while squeezing its page size under 1,024 bytes is no easy feat. Narrator: It was extremely easy feat. Just make spec-invalid webpage and skip all the heads, bodies, htmls and rest of it.

It is a valid page. Check it out with w3c validator. It only gets a warning for missing lang attribute on html tag.

Re: Making a Website Under 1kB

#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.

Re: Making a Website Under 1kB

#18

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

Re: Making a Website Under 1kB

#19
post #12

> Building a website that actually serves useful content while squeezing its page size under 1,024 bytes is no easy feat. Narrator: It was extremely easy feat. Just make spec-invalid webpage and skip all the heads, bodies, htmls and rest of it.

Omitting many kinds of tags is perfectly valid in html5. Most of my websites feature no explicit body or head tags. Html open tag is “required” because of the lang-attribute.

You also don’t need to quote attribute values. You don’t need closing tags for many html elements.

Post reply on HN