Frappe.ready not working on custom html web pages

Hello,

The frappe.ready() function does not execute the codes implemented inside it. It also doesn’t display any error to the console.

Please what do I need to do in order to make it work?

frappe.ready(function() {
console.log(“Profile Page”);
})

This code doesn’t log anything to the console, but every code put outside the frappe.ready() function runs perfectly.

+1 Facing the same issue.
I ended up using window.onload with a defer in the script tag and putting it after the frappe script code

I used jquery’s $(document).ready( () => {} ) callback method and it worked for me.

Thanks a lot.