Answers for "jquery when page has loaded"

4

check if jquery is loaded

$(document).ready(function(){
  if (jQuery) {  
    // jQuery is loaded  
    alert("Yeah!");
  } else {
    // jQuery is not loaded
    alert("Doesn't Work");
  }
});
Posted by: Guest on April-15-2020
5

jquery run after page load

$(window).on('load', function() {
 // code here
});
Posted by: Guest on September-28-2020
0

check if jquery is loaded

window.onload = function() {
    if (window.jQuery) {  
        // jQuery is loaded  
        alert("Yeah!");
    } else {
        // jQuery is not loaded
        alert("Doesn't Work");
    }
}
Posted by: Guest on December-16-2020

Code answers related to "jquery when page has loaded"

Code answers related to "Javascript"

Browse Popular Code Answers by Language