What you can experience here is not so much a bug, but an extreme example of how AJAX calls during Page Load degrades the User Experience.
Instead of using any AJAX operation on Page Load, consider using a regular Page Process during Rendering, to grab that information.
Another improvement can be to bundle the AJAX calls to a single one, as shown on
Page 91