jquery doc on ready

JavaScript
$( document ).ready(function() {
    console.log( "ready!" );
});$(document).ready(() => {
	console.log('ready');
});
Source

Also in JavaScript: