That sound great! Let me know if you want me to test anything out.
I also see this. I’m administering a rather large wordpress site, which in general loads in like 2 seconds, and 500 ms comes from this issue. So it’s 25% of the load time for just this plugin.
If I understand the problem correctly this is because the javascript is doing a separate call to the site, which consequently forces the “require_once() of ‘wp-load.php” to load the whole wordpress site again. So basically doubling the calls to the site.
Don’t know if this already uses ajax, or if that can be a solution.