Created
December 12, 2019 16:45
-
-
Save MrCoker/43ab654f7f7e364b2a86a34e80f8cbe6 to your computer and use it in GitHub Desktop.
Document Ready
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Document ready loads when the browser has passed from the top all the way to the bottom | |
*/ | |
// Standard | |
$(document).ready(function(){ | |
}); | |
// Shorthand | |
$(function(){ | |
}); | |
// WordPress Standard | |
jQuery(document).ready(function($){ | |
// Allows you to use $ for your jQuery | |
}); | |
// WordPress Shorthad Doc Ready | |
(function($){ | |
})(jQuery); | |
/** | |
* Load fires after every element on a page has finished loading | |
*/ | |
$(window).load(function(){ | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment