Custom menu with an AJAX call

Why isn’t it async: true?