ajax run function after page load

JavaScript
$(document).ready(function() {
    // Code to run as soon as the page is ready
})
Source

Also in JavaScript: