In my Grails view, I have a script tag set up like this:
<script type="text/javascript">
/* the first setInterval */
setInterval(
function()
{
console.log("Test...");
},
5000
);
setInterval(
function()
{
console.log("Test... (2)");
},
5000
);
GetContent(1);
GetContent(2);
GetContent(3);
GetContent(4);
setInterval(
Test0,
5000
);
setInterval(
Test2,
5000
);
setInterval(
ShowTime,
1000 * 10
);
setInterval(
Test3,
1000 * 9
);
setInterval(
Test1,
1000 * 8
);
</script>
Curiously, the first setInterval function is not being executed as expected. Despite showing up in the html view source, it seems to be skipped over during execution.
Even when I duplicate the first setInterval function call, only one instance of it is actually run.
The console output displays "Test..." just once every 5000 milliseconds.
Could there possibly be a bug related to Grails causing this issue?