I have a functionality to hide controls conditionally before the document is loaded. If I put this functionality on $(document).ready, I see the page flickering to hide the controls conditionally. I would like to know if there is an event that can be called before $(document).ready is triggered.
I have a functionality to hide controls conditionally before the document is loaded. If
Share
As others mentioned do something like this
in the document.ready , you can show , this is equivalent of onload , which waits till html is loaded
jsfiddle example here
http://jsfiddle.net/kdpAr/