Live data from Hacker News

Another 10k Apart: Create a Website in 10 KB, Win Prizes

alistapart.com

31–33 of 33 posts

Re: Another 10k Apart: Create a Website in 10 KB, Win Prizes

#31
post #24
post #23

Earlier quoted context omitted.

So what does this mean?: "In order to encourage folks to use native JavaScript functionality and keep their project as slim as possible, this year we’ve chosen to remove JavaScript libraries from the “free resource” camp."

You could previously include JS libraries and they didn't count against the 10k limit. now they do. EDIT: Somehow, since lazy-loading not strictly required stuff apparently doesn't? ( https://a-k-apart.com/faq#size )

You can lazy load libraries for sure. I would still keep those to a minimum, including only what you need. For instance, don’t load all of jQuery if you only need one feature. And use native JavaScript code when you can get away with it—dataset instead of data(), querySelectorAll() instead of $(), etc.

Re: Another 10k Apart: Create a Website in 10 KB, Win Prizes

#33
post #6

I know a simple blog isn't the type of site this contest has in mind, but a couple years back I tried to shrink my blog's homepage. I got some good feedback and was happy with the result. Since I go long stretches of time without doing frontend, I felt it was a worthwhile exercise. This is what I learned from the experience: http://openmymind.net/Minimalist-Markup/

I wonder if minifiers are smart enough to do these things.
Post reply on HN