jquery how to launch a function as soon as the script is loaded code example
Example: document jquery
$(function(){
// equal to $( document ).ready(function() {
});
$(function(){
// equal to $( document ).ready(function() {
});