jquery onrready code example
Example 1: document jquery
$(function(){
// equal to $( document ).ready(function() {
});
Example 2: jquery doc on ready
$(document).ready(() => {
console.log('ready');
});
$(function(){
// equal to $( document ).ready(function() {
});
$(document).ready(() => {
console.log('ready');
});