$(document).ready(function() {// Some code.});The above code is used to.. code example Example: jquery doc on ready $(document).ready(() => { console.log('ready'); });