$("document").ready firing to early is there any way to delay?


Hi Everyone,

I have a custom piece of JS which I want to trigger when the page loads but document.ready is firing the function before the window is displayed and when I try to use window.onload this does not work at all.

Has anyone experienced this issue or have a solution for this.