4 ms·
For 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 endp
by ourcat 5y ago
For 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