Created
December 22, 2010 21:29
-
-
Save petebrowne/752136 to your computer and use it in GitHub Desktop.
Head.js Opera 11.0 Loading Bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Works in Opera 11.0 --> | |
<html> | |
<head> | |
<script src="head.js" type="text/javascript" charset="utf-8"></script> | |
</head> | |
<body> | |
<script> | |
head.js("script1.js"); | |
head.ready(function() { | |
alert('READY!'); | |
}); | |
</script> | |
</body> | |
</html> | |
<!-- Also Works in Opera 11.0 --> | |
<html> | |
<head> | |
<script src="head.js" type="text/javascript" charset="utf-8"></script> | |
</head> | |
<body> | |
<script> | |
head.js("script1.js"); | |
head.js("script2.js"); | |
head.ready(function() { | |
alert('READY!'); | |
}); | |
</script> | |
</body> | |
</html> | |
<!-- Does not work in Opera 11.0 --> | |
<html> | |
<head> | |
<script src="head.js" type="text/javascript" charset="utf-8"></script> | |
</head> | |
<body> | |
<script> | |
head.js("script1.js", "script2.js"); | |
head.ready(function() { | |
alert('READY!'); | |
}); | |
</script> | |
</body> | |
</html> |
Same happened to me. My case is similar to the one, except my function was the last argument for the head.js() function (I wasn't calling head.ready() ).
I changed the script as you explained too and it solved the problem. I'm using Opera 11.50 and Windows 7.
Strangely enough, the app does work if Opera Dragonfly is on, and it doesn't if it's off...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I confirm that the problem still exists. I changed the script as you did and it "fixed" the bug.