I have this code loaded in a script in the body:

```
(function() {
attach = function() {
       blablablablbalabl;
};

if (window.addEventListener){  
    window.addEventListener('load', attach, false);   
} else if (window.attachEvent){      
    window.attachEvent('onload', attach);  
}  
})();

```

Problem is, sometimes (4 out of 5 tries) I am refreshing IE, it wont do `attach()`,
while in other browsers it calls 100% of the times!

I am getting crazy!