Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. // IIFE - Immediately Invoked Function Expression
  2. (function(yourcode) {
  3.  
  4. // The global jQuery object is passed as a parameter
  5. yourcode(window.jQuery, window, document);
  6.  
  7. }(function($, window, document) {
  8.  
  9. // The $ is now locally scoped
  10.  
  11. // Listen for the jQuery ready event on the document
  12. $(function() {
  13.  
  14. // The DOM is ready!
  15.  
  16. });
  17.  
  18. // The rest of the code goes here!
  19.  
  20. }
  21. }));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement