setTimeout() triggering without delay

ext.net, javascript, jquery

Solution

Remove the `()` from `everything`

setTimeout(everything, 30000);

By including `()`, you are telling the browser to immediately execute `everything` and send it's return value as the callback function to the `setTimeout`.

Problem

I have the following code ``` Ext.onReady(function () { setTimeout(everything(), 30000); }); ``` I am trying to wait for EXT.NET to completely finish compiling the page before applying any javascript to the elemtents. This is not a problem in most browsers as $(document).load provides enough of delay. Of course the horrid internet explorer triggers .load prematurely which means I have to put in a hard coded delay in. The above code however, does NOTHING to delay the execution of everything(). Any ideas?

Original source