Hi all!
This is the code I use till now for calling to a certain function on window load:
Code:<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:
The question:Code:setTimeout(function(){ WHATEVER2 }) }, 1000)
What would then be the best way to combine the latter with the first code above?
Thanks in advance for your answer.
Luys



Reply With Quote

Bookmarks