$(document).ready() equivalent in JavaScript In jQuery $(document).ready() function is used to execute a code block before the page contents are loaded. This can be achieved using the plain JavaScript like: Curly hair, very fair, please share :)Click to share on Twitter (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Reddit (Opens in new window)Click to share on Telegram (Opens in new window)Click to share on WhatsApp (Opens in new window)Click to email a link to a friend (Opens in new window) Subash Chandran 24th September 2020 Leave a Comment