Hacker News new | ask | show | jobs
by kpsychwave 3272 days 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) and I need highly performant / reliable IP look ups.

1 comments

Why would you _want_ a synchronous, blocking script in the first place?
For conditionally loading other blocking assets in JS.

For example, if IP is in China, local fallback for Google CDN as it will fail.

You can also do all of these things asynchronously, without blocking the whole page.
Yes but like all async ops not without expense to the UX.