is jquery ready on page ready or on page load code example
Example 1: dom ready js
document.addEventListener("DOMContentLoaded", function() {
// code
});
Example 2: document ready jquery
$(function() {
// Handler for .ready() called.
});
document.addEventListener("DOMContentLoaded", function() {
// code
});
$(function() {
// Handler for .ready() called.
});