KAS hides the native loader automatically after the page is ready. To keep it visible until a deliberate page-owned completion, set manual_loading to true before rendering:
$manual_loading = true;
When the operation completes, hide the existing loader:
$('#kasLoader').fadeOut(400);
false retains normal automatic dismissal. Use this only when the page has a real asynchronous completion condition; handle its failure path so the user is not left behind a permanent loader.