Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- //todo
- });
- $(document).ready(function() {
- //todo
- });
- $(window).load(function(){
- //Do something after all onload fucntions.
- });
- var scripts_loaded = 0;
- var number_of_scripts = 5;
- function everything_is_loaded() {
- if(scripts_loaded == number_of_scripts) {
- //do something
- // and clear interval
- clearInterval(chk_scripts_loaded);
- }
- }
- var chk_scripts_loaded = setInterval(function() {everything_is_loaded();}, 1000);
Add Comment
Please, Sign In to add comment