Detect Final Page Render

Detect Final Page Render

How do i detect when my website is totaly rendered, all the contents, fonts and images and every thing
i want to detect the event when the browsers loading icon at page title bar stops rotating !