Detect frappe/erpnext is fully loaded with js?

I want to add some effect to element on Desk.

I tried using both jquery $(document).ready(function() {}) and frappe frappe.ready in my custom app but its not working.

They always load before frappe SPA fully loaded.

Is there any way to run my custom script after frappe/erpnext is fully loaded?