Luys
04-17-2012, 10:05 AM
Hi all!
This is the code I use till now for calling to a certain function on window load:
<script type="text/javascript">
(function($){
$(window).load(function(){
WHATEVER
});
})(jQuery);
</script>
Recently I changed the layout of the web page and there is a 'conflict' when the content try to adjust to the device (notebook, ipad, phone...): only a few times is activated the above function "on load".
I think a setTimeOut like the following would solve the simultaneity of two actions:
setTimeout(function(){
WHATEVER2
})
}, 1000)
The question:
What would then be the best way to combine the latter with the first code above?
Thanks in advance for your answer.
Luys
This is the code I use till now for calling to a certain function on window load:
<script type="text/javascript">
(function($){
$(window).load(function(){
WHATEVER
});
})(jQuery);
</script>
Recently I changed the layout of the web page and there is a 'conflict' when the content try to adjust to the device (notebook, ipad, phone...): only a few times is activated the above function "on load".
I think a setTimeOut like the following would solve the simultaneity of two actions:
setTimeout(function(){
WHATEVER2
})
}, 1000)
The question:
What would then be the best way to combine the latter with the first code above?
Thanks in advance for your answer.
Luys