Trigger javascript after page is fully loaded

1
Is it possible to fire a javascript-function after the complete page with all DOM elements has finished loading? I would have guessed that if I place this code at the bottom of index.html <script> dojo.addOnload(function(){...}); </script> would to the trick, but now the function gets called too soon (before the div is loaded, from which I wanted to get the current height) dojo.ready didn't make a difference
asked
2 answers
5

Use mx.addOnLoad()

answered
0

the onLoad en ready functions are used by Dojo. I don't know the correct solution but as a second best you can use the microflow timer with 500 ms.

answered