2 ms·
i'm wondering how much kb it loads before ready to search? update: 144KB for JSON file a little bit worrying, given their scale and potential bandwidth requir
by ushakov 5y ago
i'm wondering how much kb it loads before ready to search?
update: 144KB for JSON file
a little bit worrying, given their scale and potential bandwidth requirements
- hbcondo714 5y agoYeah I would think this file size will increase well over time. Maybe a part 2 of the article can go over how updates to the file are made when new content is published and possible scaling solutions.
- ourcat 5y agoFor content like this, it's much easier to download the entire search-index.json and run the auto-complete against that. Rather that than hitting a search endpoint (after typing a certain amount of characters).
- simonw 5y agoSadly in 2021 adding 140KB to a page isn't a big deal (given how heavy the rest of the page probably is) - but it really should be. A large chunk of the world's population still pays a locally-expensive rate for mobile bandwidth, and we're increasingly leaving them behind - or worse, pushing them into zero-rating internet plans which mean they can only use Facebook and WhatsApp while avoiding the rest of the web: https://en.wikipedia.org/wiki/Zero-rating https://en.wikipedia.org/wiki/Zero-rating