6 ms·
Given the fast lookup time, it would be useful if you could provide a JS API fot synchronous loading. Essentially, a blocking script in the dom <script src="..
by kpsychwave 9y ago
Given the fast lookup time, it would be useful if you could provide a JS API fot synchronous loading.
Essentially, a blocking script in the dom <script src="...api.js" /> that prepopulates the window object. With clever error handling, this could improve perceived performance significantly.
A few questions:
1. What differentiates you from ip-api.com and other providers?
2. Do you use MaxMind?
3. Is there an option for no-throttling? 100s of simultaneous requests?
I aggregate multiple IP databases for my SaaS (https://www.geoscreenshot.com https://www.geoscreenshot.com) and I need highly performant / reliable IP look ups.
- Etheryte 9y agoWhy would you _want_ a synchronous, blocking script in the first place?
- kpsychwave 9y agoFor conditionally loading other blocking assets in JS. For example, if IP is in China, local fallback for Google CDN as it will fail.
- Etheryte 9y agoYou can also do all of these things asynchronously, without blocking the whole page.
- kpsychwave 9y agoYes but like all async ops not without expense to the UX.