I have a page that calls a script in the header, for example:
<script type="text/javascript" src="http://www.discoverfire.net/analytics/l/a.js"></script>
(Note that you will not be able to download this script since it is DNSd locally as an intermediate domain)
Very simple.
Firefox, IE, Chrome have no problems with this basic, square function.
Opera, however, refuses to load the script. Any variables or functions in it are "undefined", and in dragonfly the script tag is displayed in the DOM, but the "No script" files are displayed on the "Script" tab.
I go to Google and find random pages, their external .js files seem very good.
Any idea why Opera hates me? Is there a security / javascript issue that I am missing?
A few things that can make a difference, but really shouldn't matter:
- The script is in a different domain than the page.
- The script is only available on my local network. The DNS'd domain is locally set, from outside the network it points somewhere else. Does Opera have an option to secretly use an external DNS server?
- The script works in any other browser.
- The problem is not the content of the script. I reduced it to one line with a warning, and it just won’t work in Opera.
Update:
OK, the problem is how Opera handles the domain.
I moved the script to several other domains and it works fine. I moved it to several paths in the local DNS'd domain, and it will not work anywhere in this domain.
This makes me think that the problem is that Opera cannot or will not load a script from this domain for any reason.
Oddly enough, there are no problems loading pages and other resources from the domain, the problem is only in .js files.
The domain is registered but parked. We are DNS'd locally, so we can use it for setup / testing, and it may be somehow related to Opera with JS security.
I could be wrong, although I really have no idea. If anyone else has it, I'd love to hear it.
Update 2:
As for Dragonfly and console / developer tools, they don't say anything about the script at all. There are many Undefined variable errors for variables and functions that should be present in the script, but there are no errors besides this. Oddly enough, the script tag is displayed in DOMM, but if I click on the "Scripts" tab, it will say "No Scripts Found".
Update 3:
There is no blocked content, so we can at least exclude this setting.