document after load jquery code example
Example 1: jquery run after page load
$(window).on('load', function() {
// code here
});
Example 2: jquery onload event
// A $( document ).ready() block.
$( document ).ready(function() {
console.log( "ready!" );
});
Example 3: after load page jquery
$(document).ready(function() {
});
Example 4: document jquery
$(function(){
// equal to $( document ).ready(function() {
});
Example 5: jquery ready
// jQuery document ready function
$(function() {
// do stuff
});
Example 6: deny ready jquery
$.holdReady( true );
$.getScript( "myplugin.js", function() {
$.holdReady( false );
});