8
this bug needed separate topic, as Emdek wanted it like that so others can comment and suggest fixes
the bug or a flaw is caused by simple title-bar-content refresh
what it does is, constant reading-writing to hard-disk and choking of Otter in performance
mind you, I only tested this on my "windows 7" (32bit)
code in question is this:
<script language="JavaScript" type="text/javascript">
var txt="stupid rotating title - IT ROTATES AND CHOKES OTTER";
var wait=200;
var refresh=null;
function rotate_title() {
document.title=txt;
txt=txt.substring(1,txt.length)+txt.charAt(0);
refresh=setTimeout("rotate_title()",wait);}
rotate_title();
</script>
here is plain example within clean HTML file if you want to try:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script language="JavaScript" type="text/javascript">
var txt="stupid rotating title - IT ROTATES AND CHOKES OTTER";
var wait=200;
var refresh=null;
function rotate_title() {
document.title=txt;
txt=txt.substring(1,txt.length)+txt.charAt(0);
refresh=setTimeout("rotate_title()",wait);}
rotate_title();
</script>
</head>
<body>
</body>
</html>