run code before page ready jquery code example
Example 1: jquery run after page load
$(window).on('load', function() {
// code here
});
Example 2: document jquery
$(function(){
// equal to $( document ).ready(function() {
});
$(window).on('load', function() {
// code here
});
$(function(){
// equal to $( document ).ready(function() {
});