Re:Another 10k Apart: Create a Website in 10 KB, Win Prizes
by clarkmoody on Monday August 15, 2016 @12:44PM
(#12291580)
Not true. JS libraries simply count against your 10kB. In the past, they may have been "free resources"
[ Parent
| on HN ]
Re:Another 10k Apart: Create a Website in 10 KB, Win Prizes
by fomq on Monday August 15, 2016 @01:36PM
(#12291961)
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."
Re:Another 10k Apart: Create a Website in 10 KB, Win Prizes
by detaro on Monday August 15, 2016 @01:39PM
(#12291986)
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)
Re:Another 10k Apart: Create a Website in 10 KB, Win Prizes
by aarongustafson on Tuesday August 16, 2016 @11:34AM
(#12298100)
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.