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)
[ Parent
| on HN ]
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.